-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Deconstructing heavy machinery can give negative 1 billion 60L tanks, among other weirdness #75308
Comments
My wild guess would be #74440 Probably needs @Procyonae to look into this 🙂 |
Just another wild guess:
This may lead to:
Where But I also might be wrong |
Okay. I found the issue! item_group.cpp:491
Something like this should fix this:
But I am not sure. So if true devs agree with this solution - I'll make a PR :) If yes - then I'm not sure if something like this is appropriate...
I mean which fits more to the main code style :D Update: Also if item has probability less than a 100 should it be |
Whoops ye, nice catch ^_^ |
Describe the bug
Deconstructing the heavy machinery object at the light industry gives a weird amount of items, including negative numbers and billions of items. It seems every time the game is restarted, the number of items you get from deconstruction changes.
Attach save file
Vinemont-trimmed.tar.gz
Steps to reproduce
In this case, the heavy machinery was in a light industry building, the building without the safe.
Expected behavior
I expected that the deconstruction of heavy machinery would not give me negative 1 billion 60L tanks, because heavy machinery is usually not built with negative 1 billion 60L tanks.
Screenshots
Screenshot of the deconstruction on a fresh save, spawned with debug mode.
Screenshot of the deconstruction on the save i encountered this bug
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth],
Bionic Slots [cbm_slots]
]
Additional context
No response
The text was updated successfully, but these errors were encountered: