|
|
|
@ -120,7 +120,7 @@ class FindGappleStates: |
|
|
|
|
self.state() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LumberjackStates: |
|
|
|
|
class GatherWoodStates: |
|
|
|
|
def bair(self, p): |
|
|
|
|
return self.g.chunks.get_block_at(*p) in blocks.NON_SOLID_IDS |
|
|
|
|
|
|
|
|
@ -651,8 +651,8 @@ class JobStates: |
|
|
|
|
|
|
|
|
|
s1.run() |
|
|
|
|
|
|
|
|
|
def lumberjack(self): |
|
|
|
|
s1 = self.lumberjack_states |
|
|
|
|
def gather_wood(self): |
|
|
|
|
s1 = self.gather_wood_states |
|
|
|
|
s2 = self.sleep_with_bed_states |
|
|
|
|
s3 = self.cache_items_states |
|
|
|
|
|
|
|
|
@ -677,7 +677,7 @@ class JobStates: |
|
|
|
|
s1.run() |
|
|
|
|
|
|
|
|
|
def stop(self): |
|
|
|
|
self.lumberjack_states = LumberjackStates(self.g) |
|
|
|
|
self.gather_wood_states = GatherWoodStates(self.g) |
|
|
|
|
self.gather_sand_states = GatherSandStates(self.g) |
|
|
|
|
self.sleep_with_bed_states = SleepWithBedStates(self.g) |
|
|
|
|
self.cache_items_states = CacheItemsStates(self.g) |
|
|
|
@ -689,7 +689,7 @@ class JobStates: |
|
|
|
|
|
|
|
|
|
self.state = self.idle |
|
|
|
|
self.prev_state = None |
|
|
|
|
self.lumberjack_states = LumberjackStates(self.g) |
|
|
|
|
self.gather_wood_states = GatherWoodStates(self.g) |
|
|
|
|
self.gather_sand_states = GatherSandStates(self.g) |
|
|
|
|
self.sleep_with_bed_states = SleepWithBedStates(self.g) |
|
|
|
|
self.cache_items_states = CacheItemsStates(self.g) |
|
|
|
|