Increase zombie prying time for bolted doors (#23383)
This commit is contained in:
@@ -173,6 +173,9 @@ public sealed class AirlockSystem : SharedAirlockSystem
|
|||||||
{
|
{
|
||||||
if (_power.IsPowered(uid))
|
if (_power.IsPowered(uid))
|
||||||
args.PryTimeModifier *= component.PoweredPryModifier;
|
args.PryTimeModifier *= component.PoweredPryModifier;
|
||||||
|
|
||||||
|
if (_bolts.IsBolted(uid))
|
||||||
|
args.PryTimeModifier *= component.BoltedPryModifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnBeforePry(EntityUid uid, AirlockComponent component, ref BeforePryEvent args)
|
private void OnBeforePry(EntityUid uid, AirlockComponent component, ref BeforePryEvent args)
|
||||||
|
|||||||
@@ -135,5 +135,12 @@ public sealed partial class AirlockComponent : Component
|
|||||||
[DataField]
|
[DataField]
|
||||||
public float DenyAnimationTime = 0.3f;
|
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
|
#endregion Graphics
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user