Commit Graph
2 Commits
Author SHA1 Message Date
wushenghua b4125fdaa4 feat: make event nodes real choices and verify the full chapter
Event nodes N04 and N07 now present two bounded options (immediate gold versus
permanent crystal) instead of silently granting gold. The data lives with the
rest of the launch content, the strings are keyed in both ship locales, and an
event-choice flow test verifies two options, the reward, and completion.

The modal stacks its actions vertically: two 220px buttons overflowed the
390px viewport and clipped the second choice.

Chapter balance is now measured rather than assumed. tools/simulate_chapter.py
plays all ten nodes with two profiles: the minimum-effort profile clears 9/10
(N08 needs taps), and the active profile clears 10/10 including the boss. That
is the evidence that manual input changes the outcome and that the chapter is
completable. The boss HP scale bug found by this simulation was fixed earlier.

tools/run_p2_checks.sh still runs 15 gates; all pass.
2026-11-17 01:55:25 +08:00
wushenghua 281349945f feat: wire the full P3a launch content and playable game shell
The 6/10/1/10 content was frozen in the data pack but never reached a running
game. This adds the full chapter and the shell that makes it playable.

Content. tools/build_launch_content.py turns the data pack's relative enemy
stats into data/mvp_launch_content.json with explicit per-node HP scales and
wave composition. The simulator accepts per-scenario enemy specs and an HP
scale; P2 scenarios carry neither, so the 300-result parity gate still passes.

Progression. ProfileStore owns the durable profile (schema 2, atomic write,
corrupt fallback, claim-once). GameRoot routes skyport -> map -> battle ->
result -> map. Only recruited heroes contribute roster DPS, so unlocking H04
at node 2 and spending gold on upgrades actually make the next battle stronger
-- the core CH fantasy that was missing when every hero counted from the start.

Three real defects surfaced while testing the loop and were fixed: P3a nodes
fell back to N01's reward id (so a second clear was silently de-duplicated),
the visible-roster set ignored unlocks, and the test itself read duration from
the live state where only the result document has that field.

tools/run_p2_checks.sh now runs 14 gates; all pass. P3a loop test drives two
nodes, reward, unlock and save/reload. The capture matrix includes the skyport
and map pages. Open gates remain the real-device and human ones.
2026-11-17 01:05:32 +08:00