mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 20:14:31 +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:
@@ -180,7 +180,7 @@
|
||||
|
||||
if(M == user) // Once we determine if we can actually do a step at all, give a slight delay to self-surgery to confirm attempts.
|
||||
to_chat(user, span_critical("You focus on attempting to perform surgery upon yourself."))
|
||||
if(!do_after(user, 3 SECONDS, M))
|
||||
if(!do_after(user, 3 SECONDS, target = M))
|
||||
return 0
|
||||
|
||||
var/datum/surgery_step/selected_surgery
|
||||
@@ -196,7 +196,7 @@
|
||||
if(istype(selected_surgery,/datum/surgery_step/generic/amputate))
|
||||
var/obj/item/organ/external/affected = M.get_organ(zone)
|
||||
to_chat(user, span_danger("You are preparing to amputate \the [M]'s [affected.name]!"))
|
||||
if(!do_after(user, 3 SECONDS, M))
|
||||
if(!do_after(user, 3 SECONDS, target = M))
|
||||
to_chat(user, span_warning("You reconsider performing an amputation..."))
|
||||
return 0
|
||||
// VOREstation edit end
|
||||
|
||||
Reference in New Issue
Block a user