-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dice are consumed on activation #5789
Comments
cc @KheirFerrum |
This is a known bug we inherited. I have no idea why the fuck the iuse was coded the way it was. The iuse should instead return 0 instead if the roll value. I may throw a PR together later today if no one else does. It's basically a single line change. |
this is new, BRB checking which release it happened in |
Lol, interesting, had an inkling, but no, I did not. I came across this bug while I was refactoring #5259. Looks like fixing one bug exposed another. The issue here is that iuse action is supposed to return charges to use, this was masked by a separate bug that was causing the returned value to not be used up. A fix will be up in a short bit. |
Describe the bug
One of the recent changes to using items has caused dice to consume themselves upon use
Steps To Reproduce
obtain any RPG die, activate it to roll it
observe that it has disappeared
if you have multiple, observe that it will consume
the entire stackas many as the number it rolledScreenshots
Versions and configuration
Bright Nights [bn],
Disable NPC Needs [no_npc_food],
Simplified Nutrition [novitamins],
No Rail Stations [No_Rail_Stations],
Limit Fungal Growth [limit_fungal_growth],
Teleportation [teleportation_tech],
Craftable Gun Pack [craftgp]
]
Additional context
I collect dice :)
I am very sad that my stack of seven 20 sided metal dice were consumed :(
The text was updated successfully, but these errors were encountered: