diff --git a/Content.Server/Construction/AnchorableSystem.cs b/Content.Server/Construction/AnchorableSystem.cs index f6d86391dd..ec679fd5cb 100644 --- a/Content.Server/Construction/AnchorableSystem.cs +++ b/Content.Server/Construction/AnchorableSystem.cs @@ -7,6 +7,7 @@ using Content.Server.Tools; using Content.Shared.Construction.Components; using Content.Shared.Construction.EntitySystems; using Content.Shared.Database; +using Content.Shared.Examine; using Content.Shared.Pulling.Components; using Content.Shared.Tools.Components; @@ -25,6 +26,14 @@ namespace Content.Server.Construction SubscribeLocalEvent(OnAnchorCancelled2); SubscribeLocalEvent(OnUnanchorComplete2); SubscribeLocalEvent(OnUnanchorCancelled2); + SubscribeLocalEvent(OnAnchoredExamine); + } + + private void OnAnchoredExamine(EntityUid uid, AnchorableComponent component, ExaminedEvent args) + { + var isAnchored = Comp(uid).Anchored; + var messageId = isAnchored ? "examinable-anchored" : "examinable-unanchored"; + args.PushMarkup(Loc.GetString(messageId, ("target", uid))); } private void OnUnanchorCancelled2(EntityUid uid, AnchorableComponent component, TryUnanchorCancelledEvent args) diff --git a/Resources/Locale/en-US/battery/components/examinable-battery-component.ftl b/Resources/Locale/en-US/battery/components/examinable-battery-component.ftl index ca078b2cb2..1739b5f07b 100644 --- a/Resources/Locale/en-US/battery/components/examinable-battery-component.ftl +++ b/Resources/Locale/en-US/battery/components/examinable-battery-component.ftl @@ -3,4 +3,3 @@ # Shown when the battery is examined in details range examinable-battery-component-examine-detail = The battery is [color={$markupPercentColor}]{$percent}%[/color] full. - diff --git a/Resources/Locale/en-US/examine/examine-system.ftl b/Resources/Locale/en-US/examine/examine-system.ftl index 74d806bcf9..d10b04c82b 100644 --- a/Resources/Locale/en-US/examine/examine-system.ftl +++ b/Resources/Locale/en-US/examine/examine-system.ftl @@ -3,3 +3,7 @@ examine-system-entity-does-not-exist = That entity doesn't exist examine-verb-name = Basic + +examinable-anchored = It is anchored to the floor + +examinable-unanchored = It is unanchored from the floor