mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 12:05:28 +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:
@@ -145,7 +145,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
if(!choice)
|
||||
return
|
||||
to_chat(user,span_notice("You begin moving..."))
|
||||
if(!do_after(user, 10 SECONDS))
|
||||
if(!do_after(user, 10 SECONDS, target = src))
|
||||
return
|
||||
user.forceMove(choice)
|
||||
user.cancel_camera()
|
||||
@@ -179,7 +179,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
|
||||
if(!can_enter(user))
|
||||
user.visible_message(span_warning("\The [user] reaches into \the [src]. . ."),span_warning("You reach into \the [src]. . ."))
|
||||
if(!do_after(user, 3 SECONDS))
|
||||
if(!do_after(user, 3 SECONDS, target = src))
|
||||
user.visible_message(span_notice("\The [user] pulls their hand out of \the [src]."),span_warning("You pull your hand out of \the [src]"))
|
||||
return
|
||||
if(!src.contents.len)
|
||||
@@ -218,7 +218,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
return
|
||||
|
||||
user.visible_message(span_notice("\The [user] begins climbing into \the [src]!"))
|
||||
if(!do_after(user, 10 SECONDS))
|
||||
if(!do_after(user, 10 SECONDS, target = src))
|
||||
to_chat(user, span_warning("You didn't go into \the [src]!"))
|
||||
return
|
||||
|
||||
@@ -245,7 +245,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
var/mob/living/k = M
|
||||
|
||||
k.visible_message(span_notice("\The [k] begins climbing into \the [src]!"))
|
||||
if(!do_after(k, 3 SECONDS))
|
||||
if(!do_after(k, 3 SECONDS, target = src))
|
||||
to_chat(k, span_warning("You didn't go into \the [src]!"))
|
||||
return
|
||||
|
||||
@@ -337,7 +337,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
if(!choice)
|
||||
return
|
||||
to_chat(usr,span_notice("You begin moving..."))
|
||||
if(!do_after(usr, 10 SECONDS))
|
||||
if(!do_after(usr, 10 SECONDS, target = src))
|
||||
return
|
||||
if(QDELETED(src))
|
||||
return
|
||||
@@ -375,7 +375,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
|
||||
if(!(usr.mob_size <= MOB_TINY || usr.get_effective_size(TRUE) <= micro_accepted_scale))
|
||||
usr.visible_message(span_warning("\The [usr] reaches into \the [src]. . ."),span_warning("You reach into \the [src]. . ."))
|
||||
if(!do_after(usr, 3 SECONDS))
|
||||
if(!do_after(usr, 3 SECONDS, target = src))
|
||||
usr.visible_message(span_notice("\The [usr] pulls their hand out of \the [src]."),span_warning("You pull your hand out of \the [src]"))
|
||||
return
|
||||
|
||||
@@ -416,7 +416,7 @@ GLOBAL_LIST_EMPTY(micro_tunnels)
|
||||
return
|
||||
|
||||
usr.visible_message(span_notice("\The [usr] begins climbing into \the [src]!"))
|
||||
if(!do_after(usr, 10 SECONDS))
|
||||
if(!do_after(usr, 10 SECONDS, target = src))
|
||||
to_chat(usr, span_warning("You didn't go into \the [src]!"))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user