Rename lumberjack to gather_wood
This commit is contained in:
parent
83132ab2bb
commit
c6c0def867
2
game.py
2
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
|
||||
|
|
10
jobs.py
10
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user