Implement 26.3 food consumption

This commit is contained in:
Tanner
2026-11-04 20:06:02 +00:00
parent 1ecec547ae
commit 7d4f045100
8 changed files with 200 additions and 25 deletions
+4 -1
View File
@@ -12,14 +12,17 @@ class TestCropCaching(unittest.TestCase):
crop_state = object()
cache_state = Munch(silent=False)
sleep_state = Munch(silent=False)
eat_state = object()
jobs = JobStates.__new__(JobStates)
jobs.gather_crop_states = crop_state
jobs.cache_items_states = cache_state
jobs.sleep_with_bed_states = sleep_state
jobs.eat_food_states = eat_state
try:
machines = JobStates.farm_crop(jobs)
self.assertEqual(machines, [crop_state, sleep_state, cache_state])
self.assertEqual(
machines, [crop_state, sleep_state, eat_state, cache_state])
self.assertTrue(cache_state.silent)
self.assertTrue(sleep_state.silent)
self.assertTrue({