Allow Deciv Redux start with >0 City States (#5348)

This commit is contained in:
SomeTroglodyte 2021-09-29 05:19:49 +02:00 committed by GitHub
parent 070c41592f
commit 8ee36d43d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ class CityStateFunctions(val civInfo: CivilizationInfo) {
// Mercantile bonus resources
if (allPossibleBonuses.any { it.isOfType(UniqueType.CityStateUniqueLuxury) }
|| (fallback && cityStateType == CityStateType.Mercantile)) { // Fallback for badly defined Eras.json
civInfo.cityStateResource = allMercantileResources.random()
civInfo.cityStateResource = allMercantileResources.randomOrNull()
}
// Unique unit for militaristic city-states