make jaws of life not awful (#10770)

This commit is contained in:
Rane
2022-08-31 23:22:25 -04:00
committed by GitHub
parent f6ef097eb2
commit 822c8f3c70
6 changed files with 36 additions and 2 deletions

View File

@@ -174,6 +174,7 @@ public sealed class DoorSystem : SharedDoorSystem
});
}
/// <summary>
/// Pry open a door. This does not check if the user is holding the required tool.
/// </summary>
@@ -187,7 +188,7 @@ public sealed class DoorSystem : SharedDoorSystem
if (!force)
{
var canEv = new BeforeDoorPryEvent(user);
var canEv = new BeforeDoorPryEvent(user, tool);
RaiseLocalEvent(target, canEv, false);
if (canEv.Cancelled)