Move to new sign-based threat refuge system
This commit is contained in:
1 parent
038fc503f0
commit
586772cb3b
6 files changed
+418
-195
No files matched your search
@@ -17,7 +17,6 @@ from mosfet.info import mobs
|
||||
|
||||
from mosfet.jobs import (
|
||||
cache_items,
|
||||
check_threats,
|
||||
clear_leaves,
|
||||
eat_food,
|
||||
fill_blocks,
|
||||
@@ -36,7 +35,6 @@ from mosfet.jobs import (
|
||||
|
||||
for module in [
|
||||
cache_items,
|
||||
check_threats,
|
||||
clear_leaves,
|
||||
eat_food,
|
||||
fill_blocks,
|
||||
@@ -71,7 +69,6 @@ class LegacyJobStates:
|
||||
self.grab_sapling_states = grab_sapling.GrabSaplingStates(self.g)
|
||||
self.grab_sand_states = grab_sand.GrabSandStates(self.g)
|
||||
self.fill_blocks_states = fill_blocks.FillBlocksStates(self.g)
|
||||
self.check_threats_states = check_threats.CheckThreatsStates(self.g)
|
||||
self.gather_wart_states = gather_wart.GatherWartStates(self.g)
|
||||
self.gather_crop_states = gather_crop.GatherCropStates(self.g)
|
||||
self.eat_food_states = eat_food.EatFoodStates(self.g)
|
||||
@@ -105,7 +102,6 @@ class LegacyJobStates:
|
||||
def farm_sand(self):
|
||||
machines = [
|
||||
self.grab_supplies_states,
|
||||
self.check_threats_states,
|
||||
self.gather_sand_states,
|
||||
self.grab_sand_states,
|
||||
self.cache_items_states,
|
||||
@@ -216,7 +212,6 @@ class LegacyJobStates:
|
||||
|
||||
def loiter(self):
|
||||
machines = [
|
||||
self.check_threats_states,
|
||||
self.sleep_with_bed_states,
|
||||
self.eat_food_states,
|
||||
]
|
||||
@@ -285,8 +280,6 @@ class JobStates(LegacyJobStates):
|
||||
self.sleep_with_bed_states = sleep_with_bed.SleepWithBedStates(
|
||||
global_state)
|
||||
self.eat_food_states = eat_food.EatFoodStates(global_state)
|
||||
self.check_threats_states = check_threats.CheckThreatsStates(
|
||||
global_state)
|
||||
self.active_machine = None
|
||||
self.state = self.idle
|
||||
|
||||
@@ -373,9 +366,6 @@ class JobStates(LegacyJobStates):
|
||||
self.sleep_with_bed_states.state = self.sleep_with_bed_states.idle
|
||||
self.sleep_with_bed_states.force_new_bed = False
|
||||
self.eat_food_states.state = self.eat_food_states.idle
|
||||
self.check_threats_states.state = self.check_threats_states.idle
|
||||
self.check_threats_states.safety = None
|
||||
self.check_threats_states.external_safety = False
|
||||
self.gather_crop_states.active_section_anchor = None
|
||||
self.gather_crop_states.completed_crops = 0
|
||||
self.active_machine = None
|
||||
|
||||
Reference in new issue
Block a user