diff --git a/game.py b/game.py index 6ccf0ca..e143ed1 100644 --- a/game.py +++ b/game.py @@ -306,7 +306,7 @@ class Game: if command == 'gather' and data: if data == 'wood': - self.g.job.state = self.g.job.lumberjack + self.g.job.state = self.g.job.gather_wood reply = 'ok' elif data == 'sand': self.g.job.state = self.g.job.gather_sand diff --git a/jobs.py b/jobs.py index 8696475..a2dc095 100644 --- a/jobs.py +++ b/jobs.py @@ -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)