Problem
VendingMachinePanel._vending_inventories is a static dictionary that tracks purchased items per vending machine. It never clears between game runs, so starting a new game after death retains stale purchase state from the previous run.
Location
scripts/ui/vending_machine_panel.gd — _vending_inventories static var
Suggested Fix
Clear _vending_inventories on game restart / new run. Could hook into a game reset signal or clear in _ready() when a new game starts.
Priority
Low — only noticeable if player dies and restarts without closing the game. Non-blocking.
Found during v0.7.0 performance review.
Problem
VendingMachinePanel._vending_inventoriesis a static dictionary that tracks purchased items per vending machine. It never clears between game runs, so starting a new game after death retains stale purchase state from the previous run.Location
scripts/ui/vending_machine_panel.gd—_vending_inventoriesstatic varSuggested Fix
Clear
_vending_inventorieson game restart / new run. Could hook into a game reset signal or clear in_ready()when a new game starts.Priority
Low — only noticeable if player dies and restarts without closing the game. Non-blocking.
Found during v0.7.0 performance review.