diff --git a/Content.Server/Flash/FlashSystem.cs b/Content.Server/Flash/FlashSystem.cs index f904678821..30c6491f62 100644 --- a/Content.Server/Flash/FlashSystem.cs +++ b/Content.Server/Flash/FlashSystem.cs @@ -45,7 +45,7 @@ namespace Content.Server.Flash public override void Initialize() { base.Initialize(); - + SubscribeLocalEvent(OnExamine); SubscribeLocalEvent(OnFlashMeleeHit); // ran before toggling light for extra-bright lantern SubscribeLocalEvent(OnFlashUseInHand, before: new[] { typeof(HandheldLightSystem) }); @@ -54,7 +54,13 @@ namespace Content.Server.Flash SubscribeLocalEvent(OnPermanentBlindnessFlashAttempt); SubscribeLocalEvent(OnTemporaryBlindnessFlashAttempt); } + + private void OnExamine(Entity ent, ref ExaminedEvent args) + { + args.PushMarkup(Loc.GetString("flash-protection")); + } + private void OnFlashMeleeHit(EntityUid uid, FlashComponent comp, MeleeHitEvent args) { if (!args.IsHit || diff --git a/Resources/Locale/en-US/flash/components/flash-immunity-component.ftl b/Resources/Locale/en-US/flash/components/flash-immunity-component.ftl new file mode 100644 index 0000000000..72df36d2f4 --- /dev/null +++ b/Resources/Locale/en-US/flash/components/flash-immunity-component.ftl @@ -0,0 +1 @@ +flash-protection = It provides protection from [color=lightblue]bright flashes[/color].