fix admin pda health analyzer popup (#31097)

* damn it

* whoopsie

* no more fucky wucky fucky wuckies are GONE
This commit is contained in:
Milon
2024-08-19 05:02:18 +02:00
committed by GitHub
parent db427dc58f
commit 3e15e00af5
3 changed files with 9 additions and 2 deletions

View File

@@ -55,4 +55,10 @@ public sealed partial class HealthAnalyzerComponent : Component
/// </summary>
[DataField]
public SoundSpecifier? ScanningEndSound;
/// <summary>
/// Whether to show up the popup
/// </summary>
[DataField]
public bool Silent;
}

View File

@@ -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)));

View File

@@ -678,6 +678,7 @@
id: UniversalIDCard
- type: HealthAnalyzer
scanDelay: 0
silent: true
- type: CartridgeLoader
uiKey: enum.PdaUiKey.Key
notificationsEnabled: false