File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -328,12 +328,16 @@ private int baseProductionYield(Player player) {
328328 yield = 1 ;
329329
330330 // There is a size bonus for larger cities.
331- if ( cityAtTile . residents . Count >= 7 && cityAtTile . residents . Count < 13 ) {
331+ if ( cityAtTile . residents . Count > EngineStorage . gameData . rules . MaximumLevel1CitySize
332+ && cityAtTile . residents . Count <= EngineStorage . gameData . rules . MaximumLevel2CitySize ) {
332333 yield += 1 ;
333- } else if ( cityAtTile . residents . Count >= 13 ) {
334+ } else if ( cityAtTile . residents . Count > EngineStorage . gameData . rules . MaximumLevel2CitySize ) {
334335 yield += 2 ;
335336
336- // TODO: +1 more for industrial civs.
337+ // Industrious civs get +1 production in metropolises
338+ if ( cityAtTile . owner . civilization . traits . Contains ( Civilization . Trait . Industrious ) ) {
339+ yield += 1 ;
340+ }
337341 }
338342 }
339343
@@ -378,9 +382,9 @@ private int baseCommerceYield(Player player) {
378382 // See https://wiki.civforum.de/wiki/Stadtfeldertrag_(Civ3)
379383 if ( HasCity ) {
380384 int regularCityYield ;
381- if ( cityAtTile . residents . Count < 7 ) {
385+ if ( cityAtTile . residents . Count <= EngineStorage . gameData . rules . MaximumLevel1CitySize ) {
382386 regularCityYield = 1 ;
383- } else if ( cityAtTile . residents . Count < 13 ) {
387+ } else if ( cityAtTile . residents . Count <= EngineStorage . gameData . rules . MaximumLevel2CitySize ) {
384388 regularCityYield = 2 ;
385389 } else {
386390 regularCityYield = 3 ;
You can’t perform that action at this time.
0 commit comments