Skip to content

Fixes oversight with retail store money handling#784

Open
FalloutFalcon wants to merge 3 commits intoDarkPack13:masterfrom
FalloutFalcon:fix-coin-bug
Open

Fixes oversight with retail store money handling#784
FalloutFalcon wants to merge 3 commits intoDarkPack13:masterfrom
FalloutFalcon:fix-coin-bug

Conversation

@FalloutFalcon
Copy link
Copy Markdown
Member

@FalloutFalcon FalloutFalcon commented Mar 20, 2026

About The Pull Request

My code checks iscash for the ui_data but checked for a single type in the ui_act, that combined with the fact the code couldnt handle if it didnt find a credit card or cash meant you could infinitly buy items with a single gold coin (considered cash by iscash)

I decided to just make it istype for dollars, as the code assumes .use lines up 1 to 1 with the value and coins dont even have a use act.

also added a catch for the stock being free and therefore not running money checks tho its not applied anywhere.

Why It's Good For The Game

bug bad. plus the coins (and the other things caught by iscash that arent dollars) in our code arent modern fundiable money and are at best some ancient coinage. (they are stuff like silver and gold atm) mabye we should make the pawn shop accept them at some point soon.

Changelog

🆑
fix: Fixed coins allowing for infinite expenditure at a retail store
/:cl:

@FalloutFalcon FalloutFalcon requested a review from a team as a code owner March 20, 2026 18:42
@github-actions github-actions bot added the Fix label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants