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.cppclear_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.
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)
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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The result screen lit the first gold cell of the soul gauge from the cell count (
gauge_shown >= 39for 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.cppclear_cap_lit).Checked with a stubbed-
texLua 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