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-08 02:25:08 +02:00
committed by GitHub
co-authored by Kashargul
parent 736fe6ef28
commit d73f6b8dbd
330 changed files with 682 additions and 690 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
if(get_dist(get_turf(user),get_turf(src)) <= 1)
to_chat(user, span_notice("You begin inspecting \the [src]."))
if(do_after(user, 5 SECONDS))
if(do_after(user, 5 SECONDS, target = src))
to_chat(user, span_notice("\The [src] can possibly be restored with:"))
for(var/obj/item/res as anything in material_needs)
if(material_needs[res] > 0)
@@ -89,7 +89,7 @@
/obj/item/broken_gun/attackby(obj/item/W as obj, mob/user as mob)
if(can_repair_with(W, user))
if(do_after(user, (rand() * 10 SECONDS) + 5 SECONDS))
if(do_after(user, (rand() * 10 SECONDS + 5 SECONDS), target = src))
repair_with(W, user)
return