From: Pieter-Jan Briers Date: Fri, 18 Oct 2024 19:20:04 +0000 (+0200) Subject: Allow strip removing items if you're holding something (#32750) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=22938a9a56574c0424828530a53cbfe7b811f4aa;p=space-station-14.git Allow strip removing items if you're holding something (#32750) You were already able to strip more items at once from somebody than you could hold, and they would drop to the floor. This matched the behavior in SS13. Annoyingly, however, you were not allowed to *start* a stripping action if you're holding something. This just feels like an annoying paper cut, so this is no longer a thing. --- diff --git a/Content.Shared/Strip/SharedStrippableSystem.cs b/Content.Shared/Strip/SharedStrippableSystem.cs index e1c3d8ef0d..7afe503275 100644 --- a/Content.Shared/Strip/SharedStrippableSystem.cs +++ b/Content.Shared/Strip/SharedStrippableSystem.cs @@ -103,7 +103,7 @@ public abstract class SharedStrippableSystem : EntitySystem if (userHands.ActiveHandEntity != null && !hasEnt) StartStripInsertInventory((user, userHands), strippable.Owner, userHands.ActiveHandEntity.Value, args.Slot); - else if (userHands.ActiveHandEntity == null && hasEnt) + else if (hasEnt) StartStripRemoveInventory(user, strippable.Owner, held!.Value, args.Slot); } @@ -135,7 +135,7 @@ public abstract class SharedStrippableSystem : EntitySystem if (user.Comp.ActiveHandEntity != null && handSlot.HeldEntity == null) StartStripInsertHand(user, target, user.Comp.ActiveHandEntity.Value, handId, targetStrippable); - else if (user.Comp.ActiveHandEntity == null && handSlot.HeldEntity != null) + else if (handSlot.HeldEntity != null) StartStripRemoveHand(user, target, handSlot.HeldEntity.Value, handId, targetStrippable); }