mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-10 04:43:29 +07:00
Resolved #821 - Civ-wide stats are now affected by percent bonuses
This commit is contained in:
parent
85c86e0b02
commit
2060bcfa0a
@ -144,11 +144,9 @@ class CivilizationInfo {
|
||||
fun getStatMapForNextTurn(): HashMap<String, Stats> {
|
||||
val statMap = HashMap<String,Stats>()
|
||||
for (city in cities){
|
||||
for(entry in city.cityStats.baseStatList){
|
||||
if(statMap.containsKey(entry.key))
|
||||
statMap[entry.key] = statMap[entry.key]!! + entry.value
|
||||
else statMap[entry.key] = entry.value
|
||||
}
|
||||
val statBonuses = Stats()
|
||||
if(!statMap.containsKey("Cities")) statMap["Cities"]=Stats()
|
||||
statMap["Cities"] = statMap["Cities"]!! + city.cityStats.currentCityStats
|
||||
}
|
||||
|
||||
//City states culture bonus
|
||||
|
Loading…
Reference in New Issue
Block a user