Increase zombie prying time for bolted doors (#23383)

(cherry picked from commit 7c22a1cc59)
This commit is contained in:
themias
2024-01-26 21:30:48 +01:00
committed by Debug
parent f4b80a5e79
commit b9be91936e
2 changed files with 10 additions and 0 deletions
@@ -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)
@@ -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
}