Mag gloves (#147)
* created yml * +mechanics * textures * full implementation of magnetic gloves without lathe crafts and researches * finale * meeerge * Fixed
This commit is contained in:
@@ -18,6 +18,7 @@ using Content.Shared.Popups;
|
||||
using Content.Shared.Strip;
|
||||
using Content.Shared.Strip.Components;
|
||||
using Content.Shared.Verbs;
|
||||
using Content.Shared._White.MagGloves;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Player;
|
||||
using Robust.Shared.Utility;
|
||||
@@ -71,6 +72,13 @@ namespace Content.Server.Strip
|
||||
!TryComp<HandsComponent>(user, out var userHands))
|
||||
return;
|
||||
|
||||
if ((args.Slot == "gloves" || args.IsHand) && TryComp(strippable, out PreventStrippingFromHandsAndGlovesComponent? mag))
|
||||
{
|
||||
var message = Loc.GetString("maggloves-cant-strip");
|
||||
_popup.PopupEntity(message, user, user);
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.IsHand)
|
||||
{
|
||||
StripHand(user, args.Slot, strippable, userHands);
|
||||
|
||||
Reference in New Issue
Block a user