From 00002fa07fb3a427e3cd54451846517bbbe54580 Mon Sep 17 00:00:00 2001 From: Ilya246 <57039557+Ilya246@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:37:06 +0400 Subject: [PATCH] fix issues with proximity beeper (#32322) implement --- Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs | 2 +- .../Prototypes/Entities/Objects/Specific/Research/anomaly.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs b/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs index 9830e165e5..bee75e948d 100644 --- a/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs +++ b/Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs @@ -37,6 +37,6 @@ public sealed class ProximityBeeperSystem : EntitySystem private void OnNewProximityTarget(EntityUid owner, ProximityBeeperComponent proxBeeper, ref NewProximityTargetEvent args) { - _beeper.SetMute(owner, args.Target != null); + _beeper.SetMute(owner, args.Target == null); } } diff --git a/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml b/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml index ff53218e22..516bd0f6bd 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml @@ -52,6 +52,7 @@ components: - Anomaly - type: Beeper + isMuted: true minBeepInterval: 0.15 maxBeepInterval: 1.00 beepSound: -- 2.52.0