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