Firelocks are no longer pryable by hand if they are powered (#29221)

This commit is contained in:
nikthechampiongr
2024-06-22 17:49:50 +00:00
committed by GitHub
parent 061445ef6e
commit 6aced66406
3 changed files with 24 additions and 3 deletions

View File

@@ -43,14 +43,26 @@ public sealed partial class PryingComponent : Component
/// Cancel to stop the entity from being pried open.
/// </summary>
[ByRefEvent]
public record struct BeforePryEvent(EntityUid User, bool PryPowered, bool Force)
public record struct BeforePryEvent(EntityUid User, bool PryPowered, bool Force, bool StrongPry)
{
public readonly EntityUid User = User;
/// <summary>
/// Whether prying should be allowed even if whatever is being pried is powered.
/// </summary>
public readonly bool PryPowered = PryPowered;
/// <summary>
/// Whether prying should be allowed to go through under most circumstances. (E.g. airlock is bolted).
/// Systems may still wish to ignore this occasionally.
/// </summary>
public readonly bool Force = Force;
/// <summary>
/// Whether anything other than bare hands were used. This should only be false if prying is being performed without a prying comp.
/// </summary>
public readonly bool StrongPry = StrongPry;
public string? Message;
public bool Cancelled;