[Medium] [Bug] Spire Climbing: Library room XP scaling includes undocumented floor multiplier #297
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.10
Severity: Medium
Problem:
src/lib/game/stores/non-combat-room-actions.ts:130computes XP as:The spec says "25× the normal rate" but the code adds a
(1 + floor/10)scaling factor not in the spec. Also,BASE_LIBRARY_XP_PER_HOUR = 50is a magic number not mentioned in the spec.File:
src/lib/game/stores/non-combat-room-actions.ts:130Starting work on library room XP scaling fix. Removing undocumented floor multiplier.
Fix applied and pushed. Removed undocumented floor multiplier from library room XP calculation.
Root cause: Code used
BASE_LIBRARY_XP_PER_HOUR * (1 + floor/10) * 25but spec says "25× the normal rate" with no floor multiplier.Fix: Changed to
BASE_LIBRARY_XP_PER_HOUR * 25 * hoursto match spec §4.10.Tests: 1069 passed (58 files).