Skip to content

Commit 060be40

Browse files
committed
Award the bonus shield to an industrial civ metropolis
1 parent c3dae54 commit 060be40

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

C7Engine/C7GameData/Tile.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)