Add hatch retention, automatic breakthroughs and exploration
This commit is contained in:
@@ -70,6 +70,10 @@ class CoreTests(unittest.TestCase):
|
||||
mon = snapshot.raw["monsters"][0]
|
||||
mon.update(process=3, roomId=1)
|
||||
snapshot.raw["stacks"][0]["monsterId"] = 0
|
||||
snapshot.raw["monsters"][1].update(process=3, roomId=1)
|
||||
cap = self.catalog.max_level(snapshot.monsters[900])
|
||||
snapshot.monsters[900].update(level=cap - 1,
|
||||
exp=int(self.catalog.data["monster_level"][str(cap)]) - 1)
|
||||
plans = planner.plan(snapshot, policy)
|
||||
feeding = next(a for a in plans if a.kind == "feed")
|
||||
self.assertEqual(feeding.payload, {"targetId": 900, "foods": [mon["id"]]})
|
||||
|
||||
Reference in New Issue
Block a user