mirror of
https://github.com/bdnugget/rs-sdk.git
synced 2026-11-07 09:07:30 +00:00
Skill and total hiscore rows were only written at logout, so the playtime tiebreak recorded when a player next logged out after a level-up - hours late for anyone who kept playing. Stamp player.playtime per stat on each level-up, persist it in the save (SAV_VERSION 9), and use the stamp when writing hiscore rows. Total level uses the latest stat stamp. Saves from before the stamps existed fall back to logout playtime. Note: an engine older than this rejects v9 saves, so rolling back past this commit locks out anyone who logged out on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>