Allow user to choose whether getting housed is an error
Previously, the simulation would automatically end whenever it determined you were housed. That is still the default, but the user can now choose to have the simulation continue instead. Also, this likely fixes a bug whereby an error could have been thrown for an unavailable production building when searching the production queue.
This commit is contained in:
@@ -102,6 +102,12 @@ class Gameplay():
|
||||
(walking_time,)))
|
||||
|
||||
|
||||
def set_housed_is_error(self, action_time, is_error=True):
|
||||
self._check_time(action_time)
|
||||
self.actions[action_time].append((self.world.set_housed_is_error,
|
||||
(is_error,)))
|
||||
|
||||
|
||||
def lure_huntable_with_villager(self,
|
||||
action_time,
|
||||
previous_task,
|
||||
|
||||
Reference in New Issue
Block a user