mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 02:56:14 +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:
@@ -204,5 +204,5 @@
|
||||
|
||||
/obj/effect/decal/cleanable/confetti/attack_hand(mob/user)
|
||||
to_chat(user, span_notice("You start to meticulously pick up the confetti."))
|
||||
if(do_after(user, 60))
|
||||
if(do_after(user, 6 SECONDS, target = src))
|
||||
qdel(src)
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
var/obj/structure/sign/poster/P = new poster_type(user.loc, get_dir(user, W), src)
|
||||
|
||||
if(do_after(user, 17)) //Let's check if everything is still there
|
||||
if(do_after(user, 17, target = src)) //Let's check if everything is still there
|
||||
to_chat(user, span_notice("You place the poster!"))
|
||||
qdel(src)
|
||||
return TRUE
|
||||
|
||||
@@ -332,7 +332,7 @@
|
||||
add_fingerprint(user)
|
||||
msg_admin_attack("[key_name_admin(user)] primed \a [src]")
|
||||
user.visible_message("[user] starts priming \the [src.name].", "You start priming \the [src.name]. Hold still!")
|
||||
if(do_after(user, 10 SECONDS))
|
||||
if(do_after(user, 10 SECONDS, target = src))
|
||||
playsound(src, 'sound/weapons/armbomb.ogg', 75, 1, -3)
|
||||
prime(user)
|
||||
else
|
||||
@@ -343,7 +343,7 @@
|
||||
/obj/item/mine/attackby(obj/item/W as obj, mob/living/user as mob)
|
||||
if(W.has_tool_quality(TOOL_SCREWDRIVER) && trap)
|
||||
to_chat(user, span_notice("You begin removing \the [trap]."))
|
||||
if(do_after(user, 10 SECONDS))
|
||||
if(do_after(user, 10 SECONDS, target = src))
|
||||
to_chat(user, span_notice("You finish disconnecting the mine's trigger."))
|
||||
trap.forceMove(get_turf(src))
|
||||
trap = null
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
/obj/effect/overlay/snow/attackby(obj/item/W as obj, mob/user as mob)
|
||||
if (istype(W, /obj/item/shovel))
|
||||
user.visible_message(span_notice("[user] begins to shovel away \the [src]."))
|
||||
if(do_after(user, 40))
|
||||
if(do_after(user, 4 SECONDS, target = src))
|
||||
to_chat(user, span_notice("You have finished shoveling!"))
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user