Grab useful supplies off the ground
This commit is contained in:
+13
-8
@@ -152,9 +152,9 @@ class LegacyJobStates:
|
||||
]
|
||||
self.sleep_with_bed_states.silent = True
|
||||
self.cache_items_states.silent = True
|
||||
self.grab_supplies_states.supplies = {
|
||||
tuple(items.AXE_IDS): (1, 9),
|
||||
}
|
||||
self.grab_supplies_states.supplies = (
|
||||
self.grab_supplies_states.default_supplies())
|
||||
self.grab_supplies_states.supplies[tuple(items.AXE_IDS)] = (1, 9)
|
||||
|
||||
items.set_needed(items.AXE_IDS)
|
||||
items.set_wanted(items.SAPLING_IDS)
|
||||
@@ -286,9 +286,9 @@ class JobStates(LegacyJobStates):
|
||||
def farm_wood(self):
|
||||
self.sleep_with_bed_states.silent = True
|
||||
self.cache_items_states.silent = True
|
||||
self.grab_supplies_states.supplies = {
|
||||
tuple(items.AXE_IDS): (1, 9),
|
||||
}
|
||||
self.grab_supplies_states.supplies = (
|
||||
self.grab_supplies_states.default_supplies())
|
||||
self.grab_supplies_states.supplies[tuple(items.AXE_IDS)] = (1, 9)
|
||||
items.set_needed(items.AXE_IDS)
|
||||
items.set_wanted(items.SAPLING_IDS)
|
||||
return [
|
||||
@@ -312,8 +312,13 @@ class JobStates(LegacyJobStates):
|
||||
items.WHEAT_SEEDS_ID,
|
||||
items.BEETROOT_SEEDS_ID,
|
||||
})
|
||||
return [self.gather_crop_states, self.sleep_with_bed_states,
|
||||
self.eat_food_states, self.cache_items_states]
|
||||
return [
|
||||
self.grab_supplies_states,
|
||||
self.gather_crop_states,
|
||||
self.sleep_with_bed_states,
|
||||
self.eat_food_states,
|
||||
self.cache_items_states
|
||||
]
|
||||
|
||||
def eat(self):
|
||||
return [self.eat_food_states]
|
||||
|
||||
Reference in New Issue
Block a user