[Critical] [Bug] Spire Climbing: Recovery room 10× regen/conversion multiplier not implemented #296
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spec: docs/specs/spire-climbing-spec.md §4.8
Severity: Critical
Problem:
src/lib/game/stores/non-combat-room-actions.ts:155-163—tickRecoveryRoom()only increments progress and checks completion. There is no code anywhere that applies a 10× multiplier to mana regen or conversion rates while in a recovery room. The recovery room's primary benefit is completely missing.File:
src/lib/game/stores/non-combat-room-actions.ts:155-163Fix Applied: Recovery room 10× regen/conversion multiplier was double-counting because normal regen was applied first, then the boosted regen was added on top (resulting in ~11× instead of 10×).
Changes in
src/lib/game/stores/gameStore.ts:regenDelta = netBoostedRegen - netRawRegenand adds only the delta (9× additional) instead of the full boosted amountentry.finalRate * 9 * HOURS_PER_TICK(the delta) instead ofentry.finalRate * 10 * HOURS_PER_TICKon top of the already-applied normal conversionVerification: All 1009 existing tests pass.
Fixed: Recovery room 10× regen/conversion multiplier was double-counting. The normal regen was applied first, then the boosted regen was added on top (resulting in ~11× instead of 10×). Fixed by computing the delta (boosted - normal) and applying only the additional 9× on top of the already-applied normal regen. All 1009 tests pass.