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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user