mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-04 09:09:21 +07:00
3.18.8-patch1
Resolved #5774 - removed demanded resource from city when resource is not in ruleset
This commit is contained in:
@ -4,7 +4,7 @@ object BuildConfig {
|
|||||||
const val kotlinVersion = "1.5.30"
|
const val kotlinVersion = "1.5.30"
|
||||||
const val appName = "Unciv"
|
const val appName = "Unciv"
|
||||||
const val appCodeNumber = 654
|
const val appCodeNumber = 654
|
||||||
const val appVersion = "3.18.8"
|
const val appVersion = "3.18.8-patch1"
|
||||||
|
|
||||||
const val gdxVersion = "1.10.0"
|
const val gdxVersion = "1.10.0"
|
||||||
const val roboVMVersion = "2.3.1"
|
const val roboVMVersion = "2.3.1"
|
||||||
|
@ -429,6 +429,10 @@ class GameInfo {
|
|||||||
if (cityInfo.isPuppet && cityInfo.cityConstructions.constructionQueue.isEmpty())
|
if (cityInfo.isPuppet && cityInfo.cityConstructions.constructionQueue.isEmpty())
|
||||||
cityInfo.cityConstructions.chooseNextConstruction()
|
cityInfo.cityConstructions.chooseNextConstruction()
|
||||||
|
|
||||||
|
// We also remove resources that the city may be demanding but are no longer in the ruleset
|
||||||
|
if (!ruleSet.tileResources.containsKey(cityInfo.demandedResource))
|
||||||
|
cityInfo.demandedResource = ""
|
||||||
|
|
||||||
cityInfo.cityStats.update()
|
cityInfo.cityStats.update()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user