Fixes for minor bugs from the previous version

This commit is contained in:
Yair Morgenstern 2020-10-05 23:20:49 +03:00
parent 0e327012a7
commit 93bf69f3d5
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ class QuestManager {
return
}
if (civInfo.cities.none()) return // don't assign quests until we have a city
seedGlobalQuestCountdown()
seedIndividualQuestsCountdown()

View File

@ -14,6 +14,8 @@ class SpecialistAllocationTable(val cityScreen: CityScreen): Table(CameraStageBa
clear()
for ((specialistName, amount) in cityInfo.population.getMaxSpecialists()) {
if (!cityInfo.getRuleset().specialists.containsKey(specialistName)) // specialist doesn't exist in this ruleset, probably a mod
continue
val newSpecialists = cityInfo.population.getNewSpecialists()
val assignedSpecialists = newSpecialists[specialistName]!!
val maxSpecialists = cityInfo.population.getMaxSpecialists()[specialistName]!!