Fix prying speed & log (#29210)

* cleanup prototypes with `PryingComponent` & fix jaws of life prying speed

* Minor cleanup for tools and prying systems

Remove some obsolete methods.

* Fix doafter continues when not held & log

* Modifiy delays for floor prying

* Fix test fail
This commit is contained in:
MilenVolf
2024-06-20 17:19:22 +03:00
committed by GitHub
parent c91789a78d
commit 50146d4b98
12 changed files with 31 additions and 70 deletions

View File

@@ -70,16 +70,9 @@ public abstract partial class SharedToolSystem
tool.Qualities = current.Behavior;
// TODO: Replace this with a better solution later
if (TryComp<PryingComponent>(uid, out var pcomp))
if (TryComp<PryingComponent>(uid, out var pryComp))
{
if (current.Behavior.Contains("Prying"))
{
pcomp.Enabled = true;
}
else
{
pcomp.Enabled = false;
}
pryComp.Enabled = current.Behavior.Contains("Prying");
}
if (playSound && current.ChangeSound != null)