CleverRaven / Cataclysm-DDA

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

Trading a weapon to a friendly NPC while holding a similar weapon will cause the weapon you're holding to disappear #35441

Closed PotatoeChisps closed 4 years ago

PotatoeChisps commented 5 years ago

Describe the bug

Trading a weapon to a friendly NPC while holding a similar weapon will cause the weapon you're holding to disappear

Steps To Reproduce

Steps to reproduce the behaviour:

  1. Wield one weapon and have a similar weapon in your inventory (in this case, it was two M1014 shotguns)
  2. Trade with a friendly NPC one of your weapons (I used the weapon in my inventory, not the one I was wielding)
  3. Your inventory weapon will be given to your NPC but your wielded weapon will disappear (even if it's in a sheath, harness or holster)

Side Note: Similar weapons in the inventory (not wielded) do not disappear when given to NPC's (tried with 4 Glock 18C's)

Expected behaviour

I expect my wielded weapon to not disappear

Versions and configuration

Additional context

Did not test with items, may or may not have the same problem as weapons

Funguss commented 4 years ago

I'm pretty sure this also happens when a weapon is on the floor and near enough to be included in trade and the NPC has a copy of that type, even if it's not part of the transaction and not even wielded.

Ramza13 commented 4 years ago

Seems like #36477 should fix this

int-ua commented 4 years ago

Looks like it wasn't fixed, sadly: #38342 #39774