mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 11:35:19 +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:
@@ -413,7 +413,7 @@
|
||||
balloon_alert(user, "you can't apply a splint to the arm you're using!")
|
||||
return
|
||||
user.balloon_alert_visible("[user] starts to apply \the [src] to their [limb].", "applying \the [src] to your [limb].", "You hear something being wrapped.")
|
||||
if(do_after(user, 50, M))
|
||||
if(do_after(user, 5 SECONDS, target = M))
|
||||
if(affecting.splinted)
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!")
|
||||
return
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
if (istype(M,/mob/living/silicon/robot)) //Repairing cyborgs
|
||||
var/mob/living/silicon/robot/R = M
|
||||
if (R.getBruteLoss() || R.getFireLoss())
|
||||
if(do_after(user, 7 * toolspeed, R))
|
||||
if(do_after(user, 7 * toolspeed, target = R))
|
||||
R.adjustBruteLoss(-15)
|
||||
R.adjustFireLoss(-15)
|
||||
R.updatehealth()
|
||||
@@ -51,9 +51,9 @@
|
||||
else if(can_use(1))
|
||||
user.setClickCooldown(user.get_attack_speed(src))
|
||||
if(S.open >= 2)
|
||||
if(do_after(user, 5 * toolspeed, S))
|
||||
if(do_after(user, 5 * toolspeed, target = S))
|
||||
S.heal_damage(restoration_internal, restoration_internal, robo_repair = 1)
|
||||
else if(do_after(user, 5 * toolspeed, S))
|
||||
else if(do_after(user, 5 * toolspeed, target = S))
|
||||
S.heal_damage(restoration_external,restoration_external, robo_repair =1)
|
||||
H.updatehealth()
|
||||
use(1)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
if (recipe.time)
|
||||
to_chat(user, span_notice("Building [recipe.title] ..."))
|
||||
if (!do_after(user, recipe.time))
|
||||
if (!do_after(user, recipe.time, target = src))
|
||||
return
|
||||
|
||||
if (use(required))
|
||||
@@ -139,7 +139,7 @@
|
||||
color = M.icon_colour
|
||||
|
||||
/obj/item/stack/emptysandbag/attack_self(var/mob/user)
|
||||
while(do_after(user, 1 SECOND) && can_use(1) && istype(get_turf(src), /turf/simulated/floor/outdoors))
|
||||
while(do_after(user, 1 SECOND, target = src) && can_use(1) && istype(get_turf(src), /turf/simulated/floor/outdoors))
|
||||
use(1)
|
||||
var/obj/item/stack/sandbags/SB = new (get_turf(src), 1, bag_material)
|
||||
SB.color = color
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
if (recipe.time)
|
||||
to_chat(user, span_notice("Building [recipe.title] ..."))
|
||||
is_building = TRUE
|
||||
if (!do_after(user, recipe.time))
|
||||
if (!do_after(user, recipe.time, target = src))
|
||||
is_building = FALSE
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user