Prioritize commission rewards and fix built-in battle simulation flow

This commit is contained in:
AttilaNet
2026-11-08 20:07:26 +08:00
parent 1ee030a8e3
commit 001ed9d36d
12 changed files with 260 additions and 59 deletions
+11 -2
View File
@@ -39,7 +39,7 @@ LIMITATIONS = (
"Skill presentation callbacks are replaced with immediate model activation; AI checks use modeled cadence.",
"Knockback, cosmetic equipment animations and special equipment words are omitted.",
"Python seeded RNG is not the original Random helper or Math.random stream.",
"Only elimination objectives are supported; authored controllers, triggers and active field areas are rejected.",
"Only elimination objectives are supported; authored combat controllers, triggers and active field areas are rejected.",
"Original cheat-check execution is incomplete; detected model anomalies are preserved, not a clean-engine verdict.",
)
@@ -424,7 +424,16 @@ def _prepare(request, tables):
if not isinstance(mon, Mapping):
raise SimulationInputError("Enemy configuration contains a non-object monster")
for controller in mon.get("controller", ()) or ():
diagnostic("unit_controller", f"Unsupported monster controller: {_get(controller, 'type', 'unknown')}", blocking=True)
kind = _get(controller, "type", "unknown")
para = _get(controller, "para")
# MonControllerBuffMovie.start -> BattleMonBuff.addBuffMov:
# a standalone aura only draws a clip; stopMove pauses the
# monster's legs. Other buff slots may share status visuals.
if (kind == "buffMovie" and isinstance(para, Mapping)
and para.get("type") == "none" and not para.get("stopMove", False)):
diagnostic("cosmetic_controller", "Cosmetic monster buffMovie animation is omitted", ignored=True)
else:
diagnostic("unit_controller", f"Unsupported monster controller: {kind}", blocking=True)
if mon.get("protectTarget") or mon.get("destroyTarget"):
diagnostic("unit_objective", "Protected/destroy objective units are unsupported", blocking=True)
unit = _enemy(mon, dict(team, team=team_id), tables, f"configured-{ti + 1}-{mi + 1}", battle, diagnostic, master)