Prioritize commission rewards and fix built-in battle simulation flow
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user