From 6c836b00e5589445f461a389647d83aea4053804 Mon Sep 17 00:00:00 2001 From: babyboucher <48159308+babyboucher@users.noreply.github.com> Date: Sun, 12 Apr 2026 19:18:02 -0500 Subject: [PATCH] Fix pop being applied while city is Under Construction (#3655) ## Description: Fixes population from a city being applied as soon as it is placed instead of when it is fully built ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: babyboucher --- src/core/configuration/DefaultConfig.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index e3f4f293b..f37f2d2b4 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -771,6 +771,7 @@ export class DefaultConfig implements Config { : 2 * (Math.pow(player.numTilesOwned(), 0.6) * 1000 + 50000) + player .units(UnitType.City) + .filter((u) => !u.isUnderConstruction()) .map((city) => city.level()) .reduce((a, b) => a + b, 0) * this.cityTroopIncrease();