Keep multi-account refresh responsive and batch monster feeding
This commit is contained in:
@@ -79,7 +79,8 @@ def manual_monster_actions(catalog, snapshot, kind, monster_ids, target_id=0):
|
||||
raise ValueError("目标已达到当前突破上限,或上限未知,不能喂养")
|
||||
if any(mon.get("process") != 3 for mon in monsters):
|
||||
raise ValueError("喂养素材需先从培育室收取到牧场")
|
||||
return [Action("feed", f"将 {len(ids)} 只素材喂给 #{target_id}", "monsterService/monsterIntensify", {"targetId": int(target_id), "foods": ids})]
|
||||
foods = "、".join(catalog.monster_label(mon) for mon in monsters)
|
||||
return [Action("feed", f"喂养 {catalog.monster_label(target)} ← {len(ids)} 只素材:{foods}", "monsterService/monsterIntensify", {"targetId": int(target_id), "foods": ids})]
|
||||
if kind != "sell":
|
||||
raise ValueError("未知魔物操作")
|
||||
return [Action("sell", f"派遣 {len(ids)} 只魔物", "monsterService/monsterSell", {"monsterIds": ids})]
|
||||
|
||||
Reference in New Issue
Block a user