]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix electrify sound effects being reversed (#42294)
authorlunarcomets <140772713+lunarcomets@users.noreply.github.com>
Thu, 8 Jan 2026 14:35:39 +0000 (06:35 -0800)
committerGitHub <noreply@github.com>
Thu, 8 Jan 2026 14:35:39 +0000 (14:35 +0000)
* The Fix

* The Fix Part 2

Content.Shared/Electrocution/Components/ElectrifiedComponent.cs
Content.Shared/Remotes/EntitySystems/SharedDoorRemoteSystem.cs
Content.Shared/Silicons/StationAi/SharedStationAiSystem.Airlock.cs

index 1de5b47c57b033b3166501bd79a62a053955dda9..c780a263deaad224f67c08ce17915d10088c2de9 100644 (file)
@@ -112,10 +112,10 @@ public sealed partial class ElectrifiedComponent : Component
     public SoundSpecifier ShockNoises = new SoundCollectionSpecifier("sparks");
 
     [DataField, AutoNetworkedField]
-    public SoundPathSpecifier AirlockElectrifyDisabled = new("/Audio/Machines/airlock_electrify_on.ogg");
+    public SoundPathSpecifier AirlockElectrifyDisabled = new("/Audio/Machines/airlock_electrify_off.ogg");
 
     [DataField, AutoNetworkedField]
-    public SoundPathSpecifier AirlockElectrifyEnabled = new("/Audio/Machines/airlock_electrify_off.ogg");
+    public SoundPathSpecifier AirlockElectrifyEnabled = new("/Audio/Machines/airlock_electrify_on.ogg");
 
     [DataField, AutoNetworkedField]
     public bool PlaySoundOnShock = true;
index 7af311cc1e4431c0a15bff77848853ed8f625c5a..0c562a6de38f7ab831e2f94124f9eadfe4a76628 100644 (file)
@@ -123,8 +123,8 @@ public abstract class SharedDoorRemoteSystem : EntitySystem
                 {
                     _electrify.SetElectrified((args.Target.Value, eletrifiedComp), !eletrifiedComp.Enabled);
                     var soundToPlay = eletrifiedComp.Enabled
-                        ? eletrifiedComp.AirlockElectrifyDisabled
-                        : eletrifiedComp.AirlockElectrifyEnabled;
+                        ? eletrifiedComp.AirlockElectrifyEnabled
+                        : eletrifiedComp.AirlockElectrifyDisabled;
                     _audio.PlayLocal(soundToPlay, args.Target.Value, args.User);
                     _adminLogger.Add(LogType.Action,
                         LogImpact.Medium,
index f11cba419ee4e970c9e34c1a1cede3c2aa3476de..68025ac515b2781c2cff616223b57c53a46fdfe8 100644 (file)
@@ -101,8 +101,8 @@ public abstract partial class SharedStationAiSystem
         _adminLogger.Add(LogType.Action, $"{args.User} set electrified status on {ent} to [{args.Electrified}] using the Station AI radial.");
         _electrify.SetElectrified((ent, component), args.Electrified);
         var soundToPlay = component.Enabled
-            ? component.AirlockElectrifyDisabled
-            : component.AirlockElectrifyEnabled;
+            ? component.AirlockElectrifyEnabled
+            : component.AirlockElectrifyDisabled;
         _audio.PlayLocal(soundToPlay, ent, args.User);
     }
 }