mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Total conversion mods should handle missing specialists (altough they really should deal with it)
This commit is contained in:
parent
e690e3bcea
commit
8c1913c2c4
@ -246,7 +246,8 @@ class CityInfo {
|
|||||||
fun getGreatPersonMap():StatMap {
|
fun getGreatPersonMap():StatMap {
|
||||||
val stats = StatMap()
|
val stats = StatMap()
|
||||||
for((specialist, amount) in population.getNewSpecialists())
|
for((specialist, amount) in population.getNewSpecialists())
|
||||||
stats.add("Specialists", getRuleset().specialists[specialist]!!.greatPersonPoints.times(amount))
|
if (getRuleset().specialists.containsKey(specialist)) // To solve problems in total remake mods
|
||||||
|
stats.add("Specialists", getRuleset().specialists[specialist]!!.greatPersonPoints.times(amount))
|
||||||
|
|
||||||
val buildingStats = Stats()
|
val buildingStats = Stats()
|
||||||
for (building in cityConstructions.getBuiltBuildings())
|
for (building in cityConstructions.getBuiltBuildings())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user