mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
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
This commit is contained in:
@@ -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!"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user