diff --git a/Content.Server/Medical/Components/HealthAnalyzerComponent.cs b/Content.Server/Medical/Components/HealthAnalyzerComponent.cs index de40e98e18..85956b6029 100644 --- a/Content.Server/Medical/Components/HealthAnalyzerComponent.cs +++ b/Content.Server/Medical/Components/HealthAnalyzerComponent.cs @@ -55,4 +55,10 @@ public sealed partial class HealthAnalyzerComponent : Component /// [DataField] public SoundSpecifier? ScanningEndSound; + + /// + /// Whether to show up the popup + /// + [DataField] + public bool Silent; } diff --git a/Content.Server/Medical/HealthAnalyzerSystem.cs b/Content.Server/Medical/HealthAnalyzerSystem.cs index dadfa433e1..48710d71c2 100644 --- a/Content.Server/Medical/HealthAnalyzerSystem.cs +++ b/Content.Server/Medical/HealthAnalyzerSystem.cs @@ -91,8 +91,8 @@ public sealed class HealthAnalyzerSystem : EntitySystem NeedHand = true, BreakOnMove = true, }); - - if (args.Target == args.User || doAfterCancelled) + + if (args.Target == args.User || doAfterCancelled || uid.Comp.Silent) return; var msg = Loc.GetString("health-analyzer-popup-scan-target", ("user", Identity.Entity(args.User, EntityManager))); diff --git a/Resources/Prototypes/Entities/Objects/Devices/pda.yml b/Resources/Prototypes/Entities/Objects/Devices/pda.yml index 65639ecf11..5bf68b6fd6 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/pda.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/pda.yml @@ -678,6 +678,7 @@ id: UniversalIDCard - type: HealthAnalyzer scanDelay: 0 + silent: true - type: CartridgeLoader uiKey: enum.PdaUiKey.Key notificationsEnabled: false