Show Bowler Hat's average extra gold per floor #306

Merged
nelsong6 merged 1 commit from claude/bowler-hat-gold-stat-5f9c1c into main 2026-08-08 14:07:47 -07:00
nelsong6 commented 2026-08-08 14:07:42 -07:00 (Migrated from github.com)

Bowler Hat's tooltip reported total extra gold and the per-activation
average, but neither says how fast the relic is paying out over the run.

Adds an Avg extra gold/floor row: observed bonus gold divided by the
floors held since pickup. Floors held resolve the same way Book of Five
Rings does it — the aggregate's recorded pickup floor first, then the
live relic model's FloorAddedToDeck, and the whole run as the last
fallback.

Floors held rather than floors reached, because floors before the relic
was owned would understate its actual rate. The row's hint text says so.

Three tests cover the recorded-pickup-floor path, the live-model
fallback, and the unknown-pickup case.

No new persisted fields and no new Harmony targets — this is a changed
method body reached through hooks that already fire, so no game restart
is needed.

Per the repo's user-owned verification rule, the test suite was not run
and the row was not confirmed by hovering the relic in-game.

Bowler Hat's tooltip reported total extra gold and the per-activation average, but neither says how fast the relic is paying out over the run. Adds an `Avg extra gold/floor` row: observed bonus gold divided by the floors held since pickup. Floors held resolve the same way Book of Five Rings does it — the aggregate's recorded pickup floor first, then the live relic model's `FloorAddedToDeck`, and the whole run as the last fallback. Floors held rather than floors reached, because floors before the relic was owned would understate its actual rate. The row's hint text says so. Three tests cover the recorded-pickup-floor path, the live-model fallback, and the unknown-pickup case. No new persisted fields and no new Harmony targets — this is a changed method body reached through hooks that already fire, so no game restart is needed. Per the repo's user-owned verification rule, the test suite was not run and the row was not confirmed by hovering the relic in-game.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!306
No description provided.