mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
[MIRROR] reinforced windows no longer runtime when heated up by non welding tools that can weld [MDB IGNORE] (#14027)
* 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 * reinforced windows no longer runtime when heated up by non welding tools that can weld Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
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