Add hatch retention, automatic breakthroughs and exploration

This commit is contained in:
AttilaNet
2026-11-09 11:27:29 +08:00
parent 26be820ff2
commit 9f819d828a
32 changed files with 6207 additions and 83 deletions
+4
View File
@@ -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"]]})