mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-17 10:05:27 +01:00
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:
@@ -96,7 +96,7 @@
|
||||
return
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
|
||||
to_chat(user, span_notice("Now disassembling the low wall..."))
|
||||
if(do_after(user, 40, src))
|
||||
if(do_after(user, 4 SECONDS, target = src))
|
||||
to_chat(user, span_notice("You dissasembled the low wall!"))
|
||||
dismantle()
|
||||
return
|
||||
@@ -172,7 +172,7 @@
|
||||
to_chat(user, span_warning("You need at least two rods to do this."))
|
||||
return
|
||||
to_chat(user, span_notice("Assembling grille..."))
|
||||
if(!do_after(user, 1 SECONDS, R))
|
||||
if(!do_after(user, 1 SECONDS, target = R))
|
||||
return
|
||||
if(!R.use(2))
|
||||
return
|
||||
@@ -192,7 +192,7 @@
|
||||
to_chat(user, span_warning("You need at least four sheets of glass to do this."))
|
||||
return
|
||||
to_chat(user, span_notice("Assembling window..."))
|
||||
if(!do_after(user, 4 SECONDS, G))
|
||||
if(!do_after(user, 4 SECONDS, target = G))
|
||||
return
|
||||
if(!G.use(4))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user