+17
−0
Loading
New "fight" command runs Fight_Fight with AutoFight=false, requiring
player input for each combat round. Input comes from either:
-a ACTION Fixed action (A=attack, R=run, I=parry) applied to
every combat prompt via a GetAnswer hook
-s SCRIPT Script file with Choice=/Key= lines
Combined with -r (fixed random), -a gives fully deterministic manual
combat without a script file. This makes it easy to test win, loss,
and run scenarios.
Change -r priority to check before script mode so -r and -s can be
combined — the script provides Choice=/Key= lines while -r handles
all Random= calls, avoiding the need to predict the exact number of
random calls per combat round.
Add 10 new integration tests: manual attack win, run away, and
deterministic reproducibility. Total: 43 gtest tests.
Co-Authored-By:
Claude Opus 4.6 (1M context) <[email protected]>