-
Notifications
You must be signed in to change notification settings - Fork 0
VendingMachinePanel static inventory persists between runs #34
Copy link
Copy link
Closed
Labels
researchedAutomated research complete, ready for codingAutomated research complete, ready for coding
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
researchedAutomated research complete, ready for codingAutomated research complete, ready for coding