v30.49: investigation sweep — rest stops, save integrity, lore clamp, dead code #7
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
og_arist0tle/dark-spire!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/investigation-sweep"
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?
Full-fix sweep from the code/UX investigation (24 files, +578 / −1988). Every behavioral fix was done test-first:
test/investigation-fixes.mjs(52 tests) failed 31-red before implementation — the failure output demonstrates each bug (15 lore fragments at 15k steps, alice loading bob's cached save, a dropped server POST).Gameplay fixes
handleAscent(), which resetslastStepInt/restStopActiveUntil. Previously only the auto-ascent path reset them, so a manual ascent silenced rest stops for most of the following climb.crossedRestStopBoundaryinRestStops.js). At late-game light levels a 200 ms tick exceeds 1 step, and iOS catch-up ticks jump hundreds — both skipped boundaries before.checkLoreUnlockswas mintingmemory-13000+forever: no prose, a free +5% each, and a "13/12" memory count around ascension ~39.loreUnlockedsorts numerically (was lexicographic:memory-10000beforememory-2000).Save integrity
_pushToServerpending flag).sanitizePlayerName, mirrors_safe_player_name). Names with spaces used to fail theboot()roster comparison and re-prompt the picker on every page load.GameState.applySnapshot()/reset()replace three copy-pasted restore blocks; explicit zero steps now restores (the oldif (src.steps)falsy check skipped it).Cleanup
loreTextfromLoreFragments.js— its private copy had drifted (four fragments truncated in the unlock flash).vendor/break_infinity.mjs.X-Dark-Spire-Buildheader reads the build SHA from the rendered HTML (was hardcodedv30.4); footer says "synced per player" instead of the stale "localStorage".package.jsonsynced to 30.49.0.Verification
Test Usersave round-trips toTest_User.Deliberately out of scope (design decisions, not fixes)
meta.lastSavemakes it cheap if wanted).https://claude.ai/code/session_01GXVNmgsNVqFbiAubQLiXZF