Raises a DroppedEvent on all items in dependent inventory slot when unequipping its parent.
Why / Balance
When removing a piece of clothing in an outer slot, the dependent slots' contents (e.g. pockets, suit storage, belt) would not raise a DroppedEvent. Some items (jetpacks, health scanners, etc.) rely on this event to cut down on bookkeeping or maintain state.
This fix depends on some existing behaviour - all existing code that raises DroppedEvent removing items from slots through interaction or the like only interacts with the item being dropped directly, ignoring any children (which it doesn't know about from the call). The contents of dependent slots are only removed and relocated without any event.
How to test
Wear an EVA suit (any will work), have a mini jetpack in your suit storage.
Waddle into space, turn your jetpack on.
Spawn another suit, pick it up and wear it.
Jetpack will fall into space.
Try to move, your character will impotently wiggle, the jetpack will remain stationary.
About the PR
Raises a DroppedEvent on all items in dependent inventory slot when unequipping its parent.
Why / Balance
When removing a piece of clothing in an outer slot, the dependent slots' contents (e.g. pockets, suit storage, belt) would not raise a DroppedEvent. Some items (jetpacks, health scanners, etc.) rely on this event to cut down on bookkeeping or maintain state.
Fixes https://discord.com/channels/1123826877245694004/1305455935216549940.
Issues
This fix depends on some existing behaviour - all existing code that raises DroppedEvent removing items from slots through interaction or the like only interacts with the item being dropped directly, ignoring any children (which it doesn't know about from the call). The contents of dependent slots are only removed and relocated without any event.
How to test
Media
Requirements
Breaking changes
Changelog
Minor fix, difficult to describe to players, no changelog.