fix: debuff corruption + persist playTime (#64) #67
Reference in New Issue
Block a user
Delete Branch "burn/20260411-1507-fix-debuff-corruption"
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?
Closes #64
Changes
1. Fixed debuff corruption bug
community_dramadebuff'sapplyFnwas doingG.codeBoost *= 0.7— directly mutating the persistent boost multiplier. SinceupdateRates()runs on every building purchase, project buy, and click, this stacked the penalty exponentially (0.7^n after n calls). After ~10 actions with the debuff active,codeBoostwas effectively zero.Fix: Changed to
G.codeRate *= 0.7— applies the 30% penalty to the computed per-tick rate only. When the debuff is resolved and removed, the rate returns to normal since boost state was never touched.2. Persisted playTime across sessions
playTimewas defined in globals but never incremented and never saved/loaded. Now:dteach tick intick()saveGame()save dataloadGame()whitelist for restoration🤖 Timmy PR Review Bot
Merge is blocked — Smoke Test and Accessibility Checks are both failing. Please fix and push again.