]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Decouple standing state and drop item behavior (#41566)
authoralexalexmax <149889301+alexalexmax@users.noreply.github.com>
Tue, 16 Dec 2025 18:32:56 +0000 (10:32 -0800)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 18:32:56 +0000 (18:32 +0000)
commit2a596d283c47e9223d58c1af4a1a150f12fd72f0
tree2a430fd6e70d298be8da4644b97853b9ff99fe44
parentb0b88b216d146e9a401345f058bc7b5d11742d83
Decouple standing state and drop item behavior (#41566)

* removed DropHandsItemEvent from standing state system, added DropHandsItemEvent calls in slippery system and shared stun system

* added DropHandItemsEvent calls in mobstate system subscribers

* Added DropHandItemsEvent call in SharedBodySystem.Parts

* Add a standingState check in RemoveLeg so removing the legs of a downed person won't cause them to drop items

* new method for downing + dropping held items in mobstatesystem

* mild cleanup

* Bugfix

* update BuckleTest to reflect new item dropping behavior when removing legs

* light cleanup

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Content.IntegrationTests/Tests/Buckle/BuckleTest.cs
Content.Shared/Body/Systems/SharedBodySystem.Parts.cs
Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs
Content.Shared/Slippery/SlipperySystem.cs
Content.Shared/Standing/StandingStateSystem.cs
Content.Shared/Stunnable/SharedStunSystem.cs