Skip to content

VendingMachinePanel static inventory persists between runs #34

@aebrer

Description

@aebrer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    researchedAutomated research complete, ready for coding

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions