Merge pull request #9144 from MistakeNot4892/horror

Reworks mech repair loop to avoid infinite loops.
This commit is contained in:
Atermonera
2023-07-23 14:57:58 -08:00
committed by GitHub
3 changed files with 47 additions and 29 deletions
+1 -1
View File
@@ -88,7 +88,7 @@
if(!istype(W))
return
if(W.is_wrench() && isturf(loc))
if(do_after(5))
if(do_after(user, 5, src))
if(!src) return
to_chat(user, "<span class='notice'>You dissasemble the desk bell</span>")
new /obj/item/stack/material/steel(get_turf(src), 1)