fix: keep automatic cultivation on one stable primary per species
This commit is contained in:
@@ -56,7 +56,7 @@ class GrowthClient:
|
||||
def call(self, path, payload):
|
||||
self.calls.append((path, payload))
|
||||
if path == "monsterService/monsterSell":
|
||||
self.raw["monsters"] = []
|
||||
self.raw["monsters"] = [mon for mon in self.raw["monsters"] if mon["id"] not in payload["monsterIds"]]
|
||||
self.raw["stacks"][0]["monsterId"] = -1
|
||||
return {"resCode": 0}
|
||||
|
||||
@@ -69,6 +69,10 @@ class GrowthTests(unittest.TestCase):
|
||||
self.addCleanup(self.clock.stop)
|
||||
|
||||
def engine(self, client):
|
||||
row = self.catalog.monster(1001010)
|
||||
client.raw["monsters"].append({"id": 900, "typeId": 1001010, "process": 3, "mode": 2,
|
||||
"level": 20, "roomId": 1, "lock": 0,
|
||||
**{"g" + stat.capitalize(): row[stat + "_grow_min"] for stat in ("atk", "def", "hp", "dex")}})
|
||||
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", keep_count=0))})
|
||||
|
||||
Reference in New Issue
Block a user