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
+2 -2
View File
@@ -71,7 +71,7 @@ class GrowthTests(unittest.TestCase):
def engine(self, client):
engine = Engine(self.catalog, client)
engine.policy = Policy(manual_eggs=True, fill=False, buy=False, collect=False, protect_star=4, protect_quality=3,
egg_rules={"1001010": asdict(EggRule(enabled=True, action="sell"))})
egg_rules={"1001010": asdict(EggRule(enabled=True, action="sell", keep_count=0))})
engine.auto = True
return engine
@@ -194,7 +194,7 @@ class GrowthGuiTests(unittest.TestCase):
client = GrowthClient(window.catalog, age=610, grade="S")
client.session = Session("http://127.0.0.1/", "synthetic-test-token")
window.engine = Engine(window.catalog, client)
window.egg_rules = {"1001010": asdict(EggRule(enabled=True, action="sell"))}
window.egg_rules = {"1001010": asdict(EggRule(enabled=True, action="sell", keep_count=0))}
window.engine.policy = window.read_policy()
window.engine.snapshot = client.snapshot()
window.render(window.engine.snapshot, window.engine.plans())