Port wood gathering and fix 26.3 swing animation
This commit is contained in:
+3
-1
@@ -265,9 +265,10 @@ class LegacyJobStates:
|
||||
|
||||
|
||||
class JobStates(LegacyJobStates):
|
||||
"""26.3 facade for crop, inventory, sleeping, and loiter workflows."""
|
||||
"""26.3 facade for migrated gather-wood and crop workflows."""
|
||||
def __init__(self, global_state):
|
||||
self.g = global_state
|
||||
self.gather_wood_states = gather_wood.GatherWoodStates(global_state)
|
||||
self.gather_crop_states = gather_crop.GatherCropStates(global_state)
|
||||
self.cache_items_states = cache_items.CacheItemsStates(global_state)
|
||||
self.sleep_with_bed_states = sleep_with_bed.SleepWithBedStates(
|
||||
@@ -311,6 +312,7 @@ class JobStates(LegacyJobStates):
|
||||
self.g.look_at = None
|
||||
if self.sleep_with_bed_states.state == self.sleep_with_bed_states.sleep_bed:
|
||||
self.g.game.leave_bed()
|
||||
self.gather_wood_states.state = self.gather_wood_states.idle
|
||||
self.gather_crop_states.state = self.gather_crop_states.idle
|
||||
self.cache_items_states.state = self.cache_items_states.idle
|
||||
self.sleep_with_bed_states.state = self.sleep_with_bed_states.idle
|
||||
|
||||
Reference in New Issue
Block a user