CatStation/Content.Shared/Electrocution/InsulatedSystem.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

33 lines
976 B
C#

using Content.Shared.Clothing.Components;
using Content.Shared.Examine;
using Content.Shared.Verbs;
namespace Content.Shared.Electrocution;
public sealed partial class InsulatedSystem : EntitySystem
{
[Dependency] private 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
);
}
}