Items disappear if you try to take stack from ground without inventory
Disclaimers
- [X] I have searched the issue tracker to check if the issue has already been reported.
- [X] My issue happened while using mods.
What happened?
I made Human.xml without "Any" inventory and after i also made revolver round pickable into RightHand and LeftHand i tried to take stack of 12 from ground and 2 of them was in my hands and others just disappeared. That doesn't happen if i spawn it through console... or it still does? That doesn't happen with other items such as steel it seems.
Changed <Pickable slots="Any" msg="ItemMsgPickUpSelect" /> to
<Holdable canBeCombined="true" removeOnCombined="true" slots="Any,RightHand,LeftHand" handle1="0,0" msg="ItemMsgPickUpSelect">
<StatusEffect type="OnBroken" target="This">
<Remove />
</StatusEffect>
</Holdable>
https://github.com/FakeFishGames/Barotrauma/assets/100293037/561b0fe4-8658-4973-bc59-b2c022e08ba0
Reproduction steps
1.Human.xml edit with no Any inventory spaces 2.weapons.xml edit with some kind of bullets made pickable into hands 3.In sub editor drop stack(!) of ammo more than 2 4.Two bullets in hands, other bullets disappeared
Bug prevalence
Happens every time I play
Single player or multiplayer?
Single player
-
No response
Version
v1.2.8.0 (Winter Update hotfix 2)
-
No response
Which operating system did you encounter this bug on?
Linux
Relevant error messages and crash reports
No response