CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.63k stars 4.18k forks source link

Disassembling some ammunition has a bugged softcap #53955

Open AdamChirnside opened 2 years ago

AdamChirnside commented 2 years ago

Describe the bug

Disassembling certain types of ammunition (for example M855, 270 Winchester, 223 remington and some others) has a sort of softcap. When trying to disassemble M855, it will never yield more than 30 x the components, even if more than 30 rounds are disassembled. 270 Winchester seems to cap at 20 rounds.

Steps to reproduce

  1. Have more than 30 rounds of M855
  2. Try to disassemble

Expected behavior

n amount of components received, where n is the number of cartridges disassembled

Screenshots

No response

Versions and configuration

Additional context

Some forms of ammo seem to work fine, like .357 SIG On further testing, "count" seems to be the limiting number, somehow

Terrorforge commented 2 years ago

This is presumably related to M855 having "count:" 30 in its item definition. I wonder if this might be related to the issue with methanol byproducts described in #53836, because that also seems to have something to do with how the game processes "count".

hexagonrecursion commented 2 years ago

Confirmed