]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Increase zombie prying time for bolted doors (#23383)
authorthemias <89101928+themias@users.noreply.github.com>
Thu, 4 Jan 2024 00:41:39 +0000 (19:41 -0500)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 00:41:39 +0000 (17:41 -0700)
Content.Server/Doors/Systems/AirlockSystem.cs
Content.Shared/Doors/Components/AirlockComponent.cs

index e234ba330434d441ad8a1b043c97475fabb3387e..6d9cde8eb4e1b92973112f1ec16b02bd6102dd1d 100644 (file)
@@ -173,6 +173,9 @@ public sealed class AirlockSystem : SharedAirlockSystem
     {
         if (_power.IsPowered(uid))
             args.PryTimeModifier *= component.PoweredPryModifier;
+
+        if (_bolts.IsBolted(uid))
+            args.PryTimeModifier *= component.BoltedPryModifier;
     }
 
     private void OnBeforePry(EntityUid uid, AirlockComponent component, ref BeforePryEvent args)
index 486efa8c519d05baf6ebb2050725c5cd960731a2..332df2ac77d26502ed53c5be18e79a8e7e73c53e 100644 (file)
@@ -135,5 +135,12 @@ public sealed partial class AirlockComponent : Component
     [DataField]
     public float DenyAnimationTime = 0.3f;
 
+    /// <summary>
+    /// Pry modifier for a bolted airlock.
+    /// Currently only zombies can pry bolted airlocks.
+    /// </summary>
+    [DataField]
+    public float BoltedPryModifier = 3f;
+
     #endregion Graphics
 }