]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix issues with proximity beeper (#32322)
authorIlya246 <57039557+Ilya246@users.noreply.github.com>
Fri, 20 Sep 2024 11:37:06 +0000 (15:37 +0400)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2024 11:37:06 +0000 (21:37 +1000)
implement

Content.Shared/Beeper/Systems/ProximityBeeperSystem.cs
Resources/Prototypes/Entities/Objects/Specific/Research/anomaly.yml

index 9830e165e56f8b37afb649b13804fc789e185b2c..bee75e948d8811f94271569ecb8ef33d4e60a3d7 100644 (file)
@@ -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);
     }
 }
index ff53218e22259b19684e9e6fb47e078b630486e9..516bd0f6bdaf5956f3aff6d79e3084f22cdfc425 100644 (file)
@@ -52,6 +52,7 @@
       components:
       - Anomaly
   - type: Beeper
+    isMuted: true
     minBeepInterval: 0.15
     maxBeepInterval: 1.00
     beepSound: