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
+4 -4
View File
@@ -148,7 +148,7 @@ var/list/table_icon_cache = list()
if(F.welding)
to_chat(user, span_notice("You begin reparing damage to \the [src]."))
playsound(src, F.usesound, 50, 1)
if(!do_after(user, 20 * F.toolspeed) || !F.remove_fuel(1, user))
if(!do_after(user, 2 SECONDS * F.toolspeed, target = src) || !F.remove_fuel(1, user))
return
user.visible_message(span_infoplain(span_bold("\The [user]") + " repairs some damage to \the [src]."),
span_notice("You repair some damage to \the [src]."))
@@ -238,7 +238,7 @@ var/list/table_icon_cache = list()
if(manipulating) return M
manipulating = 1
to_chat(user, span_notice("You begin [verb]ing \the [src] with [M.display_name]."))
if(!do_after(user, 20) || !S.use(1))
if(!do_after(user, 2 SECONDS, target = src) || !S.use(1))
manipulating = 0
return null
user.visible_message(span_notice("\The [user] [verb]es \the [src] with [M.display_name]."), span_notice("You finish [verb]ing \the [src]."))
@@ -257,7 +257,7 @@ var/list/table_icon_cache = list()
span_notice("You begin removing the [type_holding] holding \the [src]'s [M.display_name] [what] in place."))
if(sound)
playsound(src, sound, 50, 1)
if(!do_after(user, delay))
if(!do_after(user, delay, target = src))
manipulating = 0
return M
user.visible_message(span_infoplain(span_bold("\The [user]") + " removes the [M.display_name] [what] from \the [src]."),
@@ -278,7 +278,7 @@ var/list/table_icon_cache = list()
user.visible_message(span_infoplain(span_bold("\The [user]") + " begins dismantling \the [src]."),
span_notice("You begin dismantling \the [src]."))
playsound(src, W.usesound, 50, 1)
if(!do_after(user, 20 * W.toolspeed))
if(!do_after(user, 2 SECONDS * W.toolspeed, target = src))
manipulating = 0
return
user.visible_message(span_infoplain(span_bold("\The [user]") + " dismantles \the [src]."),