mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
* feat
* only clothing
* fix
* Revert "fix"
This reverts commit 858c3f8827.
* fix
* reversal
* removed double namespace
* ehhh
* wrong robust toolbox
* typo
34 lines
977 B
C#
34 lines
977 B
C#
using Content.Shared.Clothing.Components;
|
|
using Content.Shared.Examine;
|
|
using Content.Shared.Verbs;
|
|
|
|
namespace Content.Shared.Electrocution;
|
|
|
|
public sealed class InsulatedSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly ExamineSystemShared _examine = default!;
|
|
|
|
/// <inheritdoc />
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<InsulatedComponent, GetVerbsEvent<ExamineVerb>>(OnDetailedExamine);
|
|
}
|
|
|
|
private void OnDetailedExamine(EntityUid ent, InsulatedComponent component, ref GetVerbsEvent<ExamineVerb> args)
|
|
{
|
|
if (!HasComp<ClothingComponent>(ent))
|
|
return;
|
|
|
|
var iconTexture = "/Textures/Interface/VerbIcons/zap.svg.192dpi.png";
|
|
|
|
_examine.AddHoverExamineVerb(args,
|
|
component,
|
|
Loc.GetString("insulated-examinable-verb-text"),
|
|
Loc.GetString("insulated-examinable-verb-text-message"),
|
|
iconTexture
|
|
);
|
|
}
|
|
}
|