fix admin pda health analyzer (#1637)

* damn it

* whoopsie

* no more fucky wucky fucky wuckies are GONE
This commit is contained in:
Milon 2024-08-18 06:08:01 +02:00 committed by GitHub
parent f7df35fc27
commit 398ffb2dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

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