mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-10 02:47:24 +07:00
3.18.8-patch1
Resolved #5774 - removed demanded resource from city when resource is not in ruleset
This commit is contained in:
parent
3dfb0aec70
commit
f3378f4ced
@ -4,7 +4,7 @@ object BuildConfig {
|
||||
const val kotlinVersion = "1.5.30"
|
||||
const val appName = "Unciv"
|
||||
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 roboVMVersion = "2.3.1"
|
||||
|
@ -429,6 +429,10 @@ class GameInfo {
|
||||
if (cityInfo.isPuppet && cityInfo.cityConstructions.constructionQueue.isEmpty())
|
||||
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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user