feat: 대도시의 자원 감소 비율 조정 및 신뢰도 감소 로직 수정
This commit is contained in:
+87
-87
@@ -13,19 +13,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [2, 3],
|
connections: [2, 3],
|
||||||
max: {
|
max: {
|
||||||
population: 300000,
|
population: 300000,
|
||||||
agriculture: 2000,
|
agriculture: 4000,
|
||||||
commerce: 2000,
|
commerce: 4000,
|
||||||
security: 2000,
|
security: 4000,
|
||||||
defence: 1000,
|
defence: 4000,
|
||||||
wall: 1000,
|
wall: 4000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 150000,
|
population: 150000,
|
||||||
agriculture: 600,
|
agriculture: 1000,
|
||||||
commerce: 600,
|
commerce: 1000,
|
||||||
security: 600,
|
security: 1000,
|
||||||
defence: 300,
|
defence: 1000,
|
||||||
wall: 300,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -37,19 +37,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [1, 4],
|
connections: [1, 4],
|
||||||
max: {
|
max: {
|
||||||
population: 400000,
|
population: 400000,
|
||||||
agriculture: 2200,
|
agriculture: 6000,
|
||||||
commerce: 2200,
|
commerce: 6000,
|
||||||
security: 2200,
|
security: 6000,
|
||||||
defence: 1100,
|
defence: 6000,
|
||||||
wall: 1100,
|
wall: 6000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 200000,
|
population: 200000,
|
||||||
agriculture: 660,
|
agriculture: 1000,
|
||||||
commerce: 660,
|
commerce: 1000,
|
||||||
security: 660,
|
security: 1000,
|
||||||
defence: 330,
|
defence: 1000,
|
||||||
wall: 330,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -61,19 +61,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [1, 5],
|
connections: [1, 5],
|
||||||
max: {
|
max: {
|
||||||
population: 500000,
|
population: 500000,
|
||||||
agriculture: 2500,
|
agriculture: 8000,
|
||||||
commerce: 2500,
|
commerce: 8000,
|
||||||
security: 2500,
|
security: 8000,
|
||||||
defence: 1200,
|
defence: 8000,
|
||||||
wall: 1200,
|
wall: 8000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 250000,
|
population: 250000,
|
||||||
agriculture: 1200,
|
agriculture: 1000,
|
||||||
commerce: 1200,
|
commerce: 1000,
|
||||||
security: 1200,
|
security: 1000,
|
||||||
defence: 600,
|
defence: 1000,
|
||||||
wall: 600,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -85,19 +85,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [2, 5],
|
connections: [2, 5],
|
||||||
max: {
|
max: {
|
||||||
population: 600000,
|
population: 600000,
|
||||||
agriculture: 2600,
|
agriculture: 10000,
|
||||||
commerce: 2600,
|
commerce: 10000,
|
||||||
security: 2600,
|
security: 10000,
|
||||||
defence: 1300,
|
defence: 10000,
|
||||||
wall: 1300,
|
wall: 10000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 300000,
|
population: 300000,
|
||||||
agriculture: 1300,
|
agriculture: 1000,
|
||||||
commerce: 1300,
|
commerce: 1000,
|
||||||
security: 1300,
|
security: 1000,
|
||||||
defence: 650,
|
defence: 1000,
|
||||||
wall: 650,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -109,19 +109,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [3, 4, 6],
|
connections: [3, 4, 6],
|
||||||
max: {
|
max: {
|
||||||
population: 300000,
|
population: 300000,
|
||||||
agriculture: 2000,
|
agriculture: 4000,
|
||||||
commerce: 2000,
|
commerce: 4000,
|
||||||
security: 2000,
|
security: 4000,
|
||||||
defence: 1000,
|
defence: 4000,
|
||||||
wall: 1000,
|
wall: 4000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 150000,
|
population: 150000,
|
||||||
agriculture: 600,
|
agriculture: 1000,
|
||||||
commerce: 600,
|
commerce: 1000,
|
||||||
security: 600,
|
security: 1000,
|
||||||
defence: 300,
|
defence: 1000,
|
||||||
wall: 300,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -133,19 +133,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [5, 7],
|
connections: [5, 7],
|
||||||
max: {
|
max: {
|
||||||
population: 400000,
|
population: 400000,
|
||||||
agriculture: 2200,
|
agriculture: 6000,
|
||||||
commerce: 2200,
|
commerce: 6000,
|
||||||
security: 2200,
|
security: 6000,
|
||||||
defence: 1100,
|
defence: 6000,
|
||||||
wall: 1100,
|
wall: 6000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 200000,
|
population: 200000,
|
||||||
agriculture: 660,
|
agriculture: 1000,
|
||||||
commerce: 660,
|
commerce: 1000,
|
||||||
security: 660,
|
security: 1000,
|
||||||
defence: 330,
|
defence: 1000,
|
||||||
wall: 330,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -157,19 +157,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [6, 8],
|
connections: [6, 8],
|
||||||
max: {
|
max: {
|
||||||
population: 500000,
|
population: 500000,
|
||||||
agriculture: 2500,
|
agriculture: 8000,
|
||||||
commerce: 2500,
|
commerce: 8000,
|
||||||
security: 2500,
|
security: 8000,
|
||||||
defence: 1200,
|
defence: 8000,
|
||||||
wall: 1200,
|
wall: 8000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 250000,
|
population: 250000,
|
||||||
agriculture: 1200,
|
agriculture: 1000,
|
||||||
commerce: 1200,
|
commerce: 1000,
|
||||||
security: 1200,
|
security: 1000,
|
||||||
defence: 600,
|
defence: 1000,
|
||||||
wall: 600,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -181,19 +181,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [7, 9],
|
connections: [7, 9],
|
||||||
max: {
|
max: {
|
||||||
population: 600000,
|
population: 600000,
|
||||||
agriculture: 2600,
|
agriculture: 10000,
|
||||||
commerce: 2600,
|
commerce: 10000,
|
||||||
security: 2600,
|
security: 10000,
|
||||||
defence: 1300,
|
defence: 10000,
|
||||||
wall: 1300,
|
wall: 10000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 300000,
|
population: 300000,
|
||||||
agriculture: 1300,
|
agriculture: 1000,
|
||||||
commerce: 1300,
|
commerce: 1000,
|
||||||
security: 1300,
|
security: 1000,
|
||||||
defence: 650,
|
defence: 1000,
|
||||||
wall: 650,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -205,19 +205,19 @@ export const LARGE_TEST_MAP: MapDefinition = {
|
|||||||
connections: [8],
|
connections: [8],
|
||||||
max: {
|
max: {
|
||||||
population: 300000,
|
population: 300000,
|
||||||
agriculture: 2000,
|
agriculture: 4000,
|
||||||
commerce: 2000,
|
commerce: 4000,
|
||||||
security: 2000,
|
security: 4000,
|
||||||
defence: 1000,
|
defence: 4000,
|
||||||
wall: 1000,
|
wall: 4000,
|
||||||
},
|
},
|
||||||
initial: {
|
initial: {
|
||||||
population: 150000,
|
population: 150000,
|
||||||
agriculture: 1000,
|
agriculture: 1000,
|
||||||
commerce: 1000,
|
commerce: 1000,
|
||||||
security: 1000,
|
security: 1000,
|
||||||
defence: 500,
|
defence: 1000,
|
||||||
wall: 500,
|
wall: 1000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -94,14 +94,14 @@ const applyPost200Penalty = (world: InMemoryTurnWorld) => {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const meta = city.meta ?? {};
|
const meta = city.meta ?? {};
|
||||||
const trust = typeof meta.trust === 'number' ? Math.floor(meta.trust * 0.9) : undefined;
|
const trust = typeof meta.trust === 'number' ? Math.floor(meta.trust * 0.5) : undefined;
|
||||||
world.updateCity(city.id, {
|
world.updateCity(city.id, {
|
||||||
population: Math.floor(city.population * 0.85),
|
population: Math.floor(city.population * 0.8),
|
||||||
agriculture: Math.floor(city.agriculture * 0.85),
|
agriculture: Math.floor(city.agriculture * 0.8),
|
||||||
commerce: Math.floor(city.commerce * 0.85),
|
commerce: Math.floor(city.commerce * 0.8),
|
||||||
security: Math.floor(city.security * 0.85),
|
security: Math.floor(city.security * 0.8),
|
||||||
defence: Math.floor(city.defence * 0.85),
|
defence: Math.floor(city.defence * 0.8),
|
||||||
wall: Math.floor(city.wall * 0.85),
|
wall: Math.floor(city.wall * 0.8),
|
||||||
meta: trust !== undefined ? { ...meta, trust } : meta,
|
meta: trust !== undefined ? { ...meta, trust } : meta,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user