var canEv = new BeforeDoorPryEvent(user, tool);
RaiseLocalEvent(target, canEv, false);
- if (canEv.Cancelled)
+ if (!door.CanPry || canEv.Cancelled)
// mark handled, as airlock component will cancel after generating a pop-up & you don't want to pry a tile
// under a windoor.
return true;
}
#endregion
+ [DataField("canPry"), ViewVariables(VVAccess.ReadWrite)]
+ public bool CanPry = true;
+
[DataField("pryingQuality", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
public string PryingQuality = "Prying";
/// <summary>
/// Default time that the door should take to pry open.
/// </summary>
- [DataField("pryTime")]
+ [DataField("pryTime"), ViewVariables(VVAccess.ReadWrite)]
public float PryTime = 1.5f;
[DataField("changeAirtight")]