cataclysmbnteam / Cataclysm-BN

Cataclysm: Bright Nights, A fork/variant of Cataclysm:DDA by CleverRaven.
https://docs.cataclysmbn.org
Other
685 stars 269 forks source link

Unlimited free nails exploit using door frames #5359

Open RobbieNeko opened 1 month ago

RobbieNeko commented 1 month ago

Describe the bug

You are able to produce 24 nails per door frame built, even if you are using the nail-less construction option.

I'd expect it to only refund the planks that went into it when using the nail-less option instead.

Steps To Reproduce

  1. Build a door frame using the nail-less option in the construction menu
  2. Deconstruct it
  3. Witness spontaneous nail creation

Screenshots

image

Versions and configuration

Additional context

No response

RoyalFox2140 commented 4 weeks ago

There's two options to fix it, and both are painful. The first is to add a new door JSON just for not using nails. The second is to do something in the code to remember what materials were used in construction, which would add up fast on memory hogging unless it was also based on a terrain or construction flag I guess.