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:
Viktor
2024-03-21 02:08:17 +02:00
committed by GitHub
parent 4199fb2669
commit 1b2b313804
36 changed files with 556 additions and 5 deletions

View File

@@ -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);