Commit Graph
2 Commits
Author SHA1 Message Date
wushenghua 2127d1318c feat: talent behaviors drive real combat decisions (stage C complete)
Continued PRODUCTION/51. Talent `behavior` text (previously display-only) now
rewrites skill effects so the battle genuinely differs when a talent is active:

- talent_behavior.py / .gd: 11 concrete behaviors -> real effect rewrites
  (lowest_hp target, +1 chain jump, armor stack, vuln window, poison stack,
  duration extend, extra hit, cooldown x0.75, click-crit energy, pierce extra,
  splash). 2 meta rules (auto tier / unlock-alternative) honestly recorded as
  out-of-combat, not faked into damage numbers.
- hero_skill_loader + skill_runtime gained optional talent/target_mode params;
  empty profile -> identity. game_root.gd injects active talents like growth
  modifiers on the live P3a path.
- test_talent_behavior.py PASS 6 checks: every behavior changes effects,
  lowest_hp really picks the lowest-HP enemy, cooldown talent changes battle.
- check_talent_behavior_parity.py PASS 6 cases python==gd.
- run_talent_behavior_ui_test.sh PASS (real game_root): cooldown talent
  shortens intervals [2.0,3.0,100,6] -> [1.5,2.25,75,4.5], skill events 19->22.
- 3 new gates; full P2_CHECKS_PASS (75 gates), identity preserved.

This makes the talent system match its descriptions ("目标改为最低血量" really
retargets; "冷却缩短" really speeds cooldowns) instead of all collapsing into
stat numbers. Stages D-E (edict rules, enemy/boss mechanics) remain.
prototype/ untracked.
2026-11-19 13:48:32 +08:00
wushenghua 20f42136d8 feat: wire effect primitives into both battle sims (stage A complete)
Continued PRODUCTION/51. Effect primitives now reach the real battle sims:
- skill_runtime.py / skill_runtime.gd bridge folds skills into per-tick state
  (poison/execute/chain/buff/summon/stun/damage), parity 7 cases python==gd.
- Both mvp_validation_sim.py and battle_sim.gd call skill_runtime each tick;
  skill_rt stored in state; buffs/summons adjust effective roster/signature DPS
  without compounding; identity when no skills (null -> neutral multipliers).
- check_skill_battle.py: SAME encounter with 6 different skills yields 6
  distinct durations [20.3/6.0/11.0/19.6/5.9/4.7], py==gd. This is the
  concrete proof that skills are no longer just "+DPS numbers".
- 5 new gates registered; full P2_CHECKS_PASS (69 gates), identity preserved
  (300 results byte-identical, mvp_parity_gate PASS).

This closes the core of the user's "not perfunctory" requirement: skills now
produce genuinely different combat behaviour. Stages B-E (per-hero archetype
assignment, talent behaviour, edict rules, enemy mechanics) remain.
prototype/ untracked.
2026-11-19 13:23:58 +08:00