From 7c22a1cc59465162cd3b85a97aa96ec72f55d4db Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Wed, 3 Jan 2024 19:41:39 -0500 Subject: [PATCH] Increase zombie prying time for bolted doors (#23383) --- Content.Server/Doors/Systems/AirlockSystem.cs | 3 +++ Content.Shared/Doors/Components/AirlockComponent.cs | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Content.Server/Doors/Systems/AirlockSystem.cs b/Content.Server/Doors/Systems/AirlockSystem.cs index e234ba3304..6d9cde8eb4 100644 --- a/Content.Server/Doors/Systems/AirlockSystem.cs +++ b/Content.Server/Doors/Systems/AirlockSystem.cs @@ -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) diff --git a/Content.Shared/Doors/Components/AirlockComponent.cs b/Content.Shared/Doors/Components/AirlockComponent.cs index 486efa8c51..332df2ac77 100644 --- a/Content.Shared/Doors/Components/AirlockComponent.cs +++ b/Content.Shared/Doors/Components/AirlockComponent.cs @@ -135,5 +135,12 @@ public sealed partial class AirlockComponent : Component [DataField] public float DenyAnimationTime = 0.3f; + /// + /// Pry modifier for a bolted airlock. + /// Currently only zombies can pry bolted airlocks. + /// + [DataField] + public float BoltedPryModifier = 3f; + #endregion Graphics }