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 command == 'gather' and data:
|
||||||
if data == 'wood':
|
if data == 'wood':
|
||||||
self.g.job.state = self.g.job.lumberjack
|
self.g.job.state = self.g.job.gather_wood
|
||||||
reply = 'ok'
|
reply = 'ok'
|
||||||
elif data == 'sand':
|
elif data == 'sand':
|
||||||
self.g.job.state = self.g.job.gather_sand
|
self.g.job.state = self.g.job.gather_sand
|
||||||
|
|
10
jobs.py
10
jobs.py
|
@ -120,7 +120,7 @@ class FindGappleStates:
|
||||||
self.state()
|
self.state()
|
||||||
|
|
||||||
|
|
||||||
class LumberjackStates:
|
class GatherWoodStates:
|
||||||
def bair(self, p):
|
def bair(self, p):
|
||||||
return self.g.chunks.get_block_at(*p) in blocks.NON_SOLID_IDS
|
return self.g.chunks.get_block_at(*p) in blocks.NON_SOLID_IDS
|
||||||
|
|
||||||
|
@ -651,8 +651,8 @@ class JobStates:
|
||||||
|
|
||||||
s1.run()
|
s1.run()
|
||||||
|
|
||||||
def lumberjack(self):
|
def gather_wood(self):
|
||||||
s1 = self.lumberjack_states
|
s1 = self.gather_wood_states
|
||||||
s2 = self.sleep_with_bed_states
|
s2 = self.sleep_with_bed_states
|
||||||
s3 = self.cache_items_states
|
s3 = self.cache_items_states
|
||||||
|
|
||||||
|
@ -677,7 +677,7 @@ class JobStates:
|
||||||
s1.run()
|
s1.run()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.lumberjack_states = LumberjackStates(self.g)
|
self.gather_wood_states = GatherWoodStates(self.g)
|
||||||
self.gather_sand_states = GatherSandStates(self.g)
|
self.gather_sand_states = GatherSandStates(self.g)
|
||||||
self.sleep_with_bed_states = SleepWithBedStates(self.g)
|
self.sleep_with_bed_states = SleepWithBedStates(self.g)
|
||||||
self.cache_items_states = CacheItemsStates(self.g)
|
self.cache_items_states = CacheItemsStates(self.g)
|
||||||
|
@ -689,7 +689,7 @@ class JobStates:
|
||||||
|
|
||||||
self.state = self.idle
|
self.state = self.idle
|
||||||
self.prev_state = None
|
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.gather_sand_states = GatherSandStates(self.g)
|
||||||
self.sleep_with_bed_states = SleepWithBedStates(self.g)
|
self.sleep_with_bed_states = SleepWithBedStates(self.g)
|
||||||
self.cache_items_states = CacheItemsStates(self.g)
|
self.cache_items_states = CacheItemsStates(self.g)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user