Add default villager task
Needed in case someone trains a villager through the default queue_unit routine rather than the queue_villager routine
This commit is contained in:
@@ -409,6 +409,8 @@ class World():
|
||||
if thing == Units.VILLAGER:
|
||||
self.villagers += 1
|
||||
self.villager_tasks[Tasks.IDLE] += 1
|
||||
if not initial_task:
|
||||
initial_task = Tasks.IDLE
|
||||
self.assign_villager(Tasks.IDLE, initial_task)
|
||||
elif thing == Units.MONK:
|
||||
self.villager_tasks[Tasks.MONK_IDLE] += 1
|
||||
|
||||
Reference in New Issue
Block a user