From 975fa3b7f9cf3d54b87fecbef1048f9c4f034234 Mon Sep 17 00:00:00 2001 From: Fikou <23585223+Fikou@users.noreply.github.com> Date: Tue, 31 May 2022 23:24:38 +0200 Subject: [PATCH] reinforced windows no longer runtime when heated up by non welding tools that can weld (#67416) About The Pull Request if(tool.tool_behaviour == TOOL_WELDER) var/obj/item/weldingtool/welder = tool if(welder.isOn()) cmon bro Changelog cl fix: reinforced windows can be heated up by things that can weld but arent welding tools /cl --- code/game/objects/structures/window.dm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 20a9887fde9..8ee6cf7579a 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -417,14 +417,13 @@ switch(state) if(RWINDOW_SECURE) if(tool.tool_behaviour == TOOL_WELDER) - var/obj/item/weldingtool/welder = tool - if(welder.isOn()) + if(tool.tool_start_check(user)) user.visible_message(span_notice("[user] holds \the [tool] to the security screws on \the [src]..."), span_notice("You begin heating the security screws on \the [src]...")) - if(tool.use_tool(src, user, 150, volume = 100)) - to_chat(user, span_notice("The security screws are glowing white hot and look ready to be removed.")) - state = RWINDOW_BOLTS_HEATED - addtimer(CALLBACK(src, .proc/cool_bolts), 300) + if(tool.use_tool(src, user, 15 SECONDS, volume = 100)) + to_chat(user, span_notice("The security screws are glowing white hot and look ready to be removed.")) + state = RWINDOW_BOLTS_HEATED + addtimer(CALLBACK(src, .proc/cool_bolts), 30 SECONDS) else if (tool.tool_behaviour) to_chat(user, span_warning("The security screws need to be heated first!"))