Result: the gold gauge cell follows the cleared state, not the cell count #37

Merged
Yonokid merged 2 commits from GanYiZhong/YataiDONNijiiro:result-gauge-clear into main 2026-09-18 16:18:03 +02:00
Collaborator

The result screen lit the first gold cell of the soul gauge from the cell count (gauge_shown >= 39 for oni), while the game decides クリア from the soul value (Gauge::get_is_clear: soul >= norma, 8000 for oni). The norma sits inside that cell — 7800..7999 soul already shows 39 of 50 cells — so a failed run drew a gold cell on the result screen even though the crown, the message bubble and the in-game HUD all agreed it had failed.

Now the transition piece and the gold strip are drawn only when gauge_state >= 1, the same test the クリア caption already used, matching the HUD gauge (gauge.cpp clear_cap_lit).

Checked with a stubbed-tex Lua harness over easy/normal/hard/oni/ura at soul values just below and at the norma: failed runs draw no gold cell and no caption; cleared runs draw both. Before the change the six just-below-norma cases drew a gold cell.

🤖 Generated with Claude Code

The result screen lit the first gold cell of the soul gauge from the cell count (`gauge_shown >= 39` for oni), while the game decides クリア from the soul value (`Gauge::get_is_clear`: soul >= norma, 8000 for oni). The norma sits inside that cell — 7800..7999 soul already shows 39 of 50 cells — so a failed run drew a gold cell on the result screen even though the crown, the message bubble and the in-game HUD all agreed it had failed. Now the transition piece and the gold strip are drawn only when `gauge_state >= 1`, the same test the クリア caption already used, matching the HUD gauge (`gauge.cpp` `clear_cap_lit`). Checked with a stubbed-`tex` Lua harness over easy/normal/hard/oni/ura at soul values just below and at the norma: failed runs draw no gold cell and no caption; cleared runs draw both. Before the change the six just-below-norma cases drew a gold cell. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
GanYiZhong added 1 commit 2026-09-17 06:19:27 +02:00
The first gold cell was lit from the cell count (39 of 50 for oni) while the game clears on soul >= norma (8000); a failed run at 7800..7999 soul grew a gold cell. Draw the transition piece and the gold strip only when gauge_state >= 1, like the HUD gauge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Yonokid added 1 commit 2026-09-18 16:17:55 +02:00
Yonokid merged commit 6ff65b69c1 into main 2026-09-18 16:18:03 +02:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Yonokid/YataiDONNijiiro#37