Fix incubator dispatch 997 by using active monsterIds contract
This commit is contained in:
@@ -458,8 +458,9 @@ class Planner:
|
||||
disposition = "keep"
|
||||
self.statuses[mid] = "保留:" + reason if disposition == "keep" else "待派遣" if disposition == "sell" else "待喂养"
|
||||
if disposition == "sell":
|
||||
key = "monsterId" if mon.get("process") == 2 else "monsterIds"
|
||||
actions.append(Action("sell", f"派遣 {name} #{mid}", "monsterService/monsterSell", {key: [mid]}))
|
||||
# MonsterCenter also routes mature incubator monsters through
|
||||
# NetMonster.sellMonsters, whose active parameter is plural.
|
||||
actions.append(Action("sell", f"派遣 {name} #{mid}", "monsterService/monsterSell", {"monsterIds": [mid]}))
|
||||
elif mon.get("process") == 2 and policy.collect:
|
||||
room = snapshot.room_available(self.catalog, policy.room_id)
|
||||
if room is not None:
|
||||
|
||||
Reference in New Issue
Block a user