From b137d4eaf06724140338123146799300bd76e9b5 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sat, 18 Apr 2020 01:10:26 +0200 Subject: [PATCH] Adds NoExamine SolutionCap. --- .../GameObjects/Components/Chemistry/SolutionComponent.cs | 7 +++++++ Content.Shared/Chemistry/SolutionCaps.cs | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Chemistry/SolutionComponent.cs b/Content.Server/GameObjects/Components/Chemistry/SolutionComponent.cs index 7e56d748ab..230c23c659 100644 --- a/Content.Server/GameObjects/Components/Chemistry/SolutionComponent.cs +++ b/Content.Server/GameObjects/Components/Chemistry/SolutionComponent.cs @@ -111,6 +111,8 @@ namespace Content.Server.GameObjects.Components.Chemistry /// public bool Injector => (Capabilities & SolutionCaps.Injector) != 0; + public bool NoExamine => (Capabilities & SolutionCaps.NoExamine) != 0; + /// public override void ExposeData(ObjectSerializer serializer) { @@ -273,6 +275,11 @@ namespace Content.Server.GameObjects.Components.Chemistry void IExamine.Examine(FormattedMessage message) { + if (NoExamine) + { + return; + } + message.AddText(_loc.GetString("Contains:\n")); if (ReagentList.Count == 0) { diff --git a/Content.Shared/Chemistry/SolutionCaps.cs b/Content.Shared/Chemistry/SolutionCaps.cs index 66fbc71801..6f5ecb3bda 100644 --- a/Content.Shared/Chemistry/SolutionCaps.cs +++ b/Content.Shared/Chemistry/SolutionCaps.cs @@ -24,6 +24,8 @@ namespace Content.Shared.Chemistry /// Allows us to have obscenely large containers that are harder to abuse in chem dispensers /// since they can't be placed directly in them. /// - FitsInDispenser = 16, + FitsInDispenser = 16, + + NoExamine = 32, } }