Makes uses of do_after sane (#18334)

* Prevents insta-actions

* Do_after sanity

NOTE: NUKE do_after_action

* Update bonfire.dm

* The  rest of them

Also fixes a tpyo

* no minitest :)

* .

* .

* Gets rid of the slowdown for now

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Cameron Lennox
2025-09-07 20:25:08 -04:00
committed by GitHub
parent 736fe6ef28
commit d73f6b8dbd
330 changed files with 682 additions and 690 deletions
@@ -28,7 +28,7 @@
if(istype(M) && locate(/obj/item/organ/internal/xenos/hivenode) in M.internal_organs)
to_chat(M, "\The [W] shudders under your touch, starting to become porous.")
playsound(W, 'sound/effects/attackblob.ogg', 50, 1)
if(!do_after(L, 5 SECONDS))
if(!do_after(L, 5 SECONDS, target = W))
return FALSE
playsound(W, 'sound/effects/attackblob.ogg', 100, 1)
W.dismantle_wall()
@@ -36,7 +36,7 @@
if(istype(M) && locate(/obj/item/organ/internal/xenos/resinspinner/replicant) in M.internal_organs)
to_chat(M, "\The [W] shudders under your touch, starting to become porous.")
playsound(W, 'sound/effects/attackblob.ogg', 50, 1)
if(!do_after(L, 5 SECONDS))
if(!do_after(L, 5 SECONDS, target = W))
return FALSE
playsound(W, 'sound/effects/attackblob.ogg', 100, 1)
W.dismantle_wall()
+1 -1
View File
@@ -96,7 +96,7 @@
return
to_chat(user, span_notice("Assembling grille..."))
in_use = 1
if (!do_after(user, 10))
if (!do_after(user, 1 SECOND, target = src))
in_use = 0
return
var/obj/structure/grille/F = new /obj/structure/grille/ ( user.loc )
@@ -53,7 +53,7 @@
if(W.sharp && W.edge)
var/time = (3 SECONDS / max(W.force / 10, 1)) * W.toolspeed
user.setClickCooldown(time)
if(do_after(user, time, src) && use(1))
if(do_after(user, time, target = src) && use(1))
to_chat(user, span_notice("You cut up a log into planks."))
playsound(src, 'sound/effects/woodcutting.ogg', 50, 1)
var/obj/item/stack/material/wood/existing_wood = null