mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-12 08:49:22 +07:00
Fixes for minor bugs from the previous version
This commit is contained in:
@ -75,6 +75,8 @@ class QuestManager {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (civInfo.cities.none()) return // don't assign quests until we have a city
|
||||||
|
|
||||||
seedGlobalQuestCountdown()
|
seedGlobalQuestCountdown()
|
||||||
seedIndividualQuestsCountdown()
|
seedIndividualQuestsCountdown()
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ class SpecialistAllocationTable(val cityScreen: CityScreen): Table(CameraStageBa
|
|||||||
clear()
|
clear()
|
||||||
|
|
||||||
for ((specialistName, amount) in cityInfo.population.getMaxSpecialists()) {
|
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 newSpecialists = cityInfo.population.getNewSpecialists()
|
||||||
val assignedSpecialists = newSpecialists[specialistName]!!
|
val assignedSpecialists = newSpecialists[specialistName]!!
|
||||||
val maxSpecialists = cityInfo.population.getMaxSpecialists()[specialistName]!!
|
val maxSpecialists = cityInfo.population.getMaxSpecialists()[specialistName]!!
|
||||||
|
Reference in New Issue
Block a user