mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 15:47:04 +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:
@@ -116,7 +116,7 @@
|
||||
if(active_repair_steps.len >= 1)
|
||||
if(O.has_tool_quality(active_repair_steps[active_repair_steps.len]))
|
||||
if(!pre_repair_handling(O,active_repair_steps[active_repair_steps.len],user)) return
|
||||
if(do_after(user, 2 SECONDS))
|
||||
if(do_after(user, 2 SECONDS, target = src))
|
||||
post_repair_handling(O,active_repair_steps[active_repair_steps.len],user)
|
||||
to_chat(usr,span_notice(fix_descs[active_repair_steps[active_repair_steps.len]]))
|
||||
active_repair_steps.len = active_repair_steps.len - 1
|
||||
|
||||
@@ -220,7 +220,7 @@ GLOBAL_LIST_INIT(event_collector_blockers,list()) //ditto
|
||||
|
||||
//put it in
|
||||
user.visible_message("[user] begins to [pick(step_initiation_verbs)] \The [O] into \The [src]")
|
||||
if(do_after(user, step_insertion_time, src)) //wait a second or two
|
||||
if(do_after(user, step_insertion_time, target = src)) //wait a second or two
|
||||
user.visible_message("[user] [pick(step_insertion_verbs)] \The [O] into \The [src]!")
|
||||
if(ishuman(user)) //should always be?
|
||||
var/mob/living/carbon/human/h = user
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
if(activatable_hand)
|
||||
if(!on)
|
||||
if(delay_time)
|
||||
if(!do_after(user, delay_time, src))
|
||||
if(!do_after(user, delay_time, target = src))
|
||||
return 0
|
||||
on = 1
|
||||
if(icon_on)
|
||||
@@ -76,7 +76,7 @@
|
||||
playsound(src, sound_activated, 50, 1)
|
||||
else if(togglable)
|
||||
if(delay_time)
|
||||
if(!do_after(user, delay_time, src))
|
||||
if(!do_after(user, delay_time, target = src))
|
||||
return 0
|
||||
on = 0
|
||||
icon_state = icon_state_off
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
if(activatable_hand)
|
||||
if(!on)
|
||||
if(delay_time)
|
||||
if(!do_after(user, delay_time, src))
|
||||
if(!do_after(user, delay_time, target = src))
|
||||
return 0
|
||||
on = 1
|
||||
icon_state = icon_state_on
|
||||
@@ -88,7 +88,7 @@
|
||||
playsound(src, sound_activated, 50, 1)
|
||||
else if(togglable)
|
||||
if(delay_time)
|
||||
if(!do_after(user, delay_time, src))
|
||||
if(!do_after(user, delay_time, target = src))
|
||||
return 0
|
||||
on = 0
|
||||
icon_state = icon_state_off
|
||||
|
||||
Reference in New Issue
Block a user