mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 03:27:46 +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:
co-authored by
Kashargul
parent
736fe6ef28
commit
d73f6b8dbd
@@ -124,7 +124,7 @@
|
||||
if(!(config_flags & EXPERIMENT_CONFIG_SILENT_FAIL))
|
||||
to_chat(user, span_notice("You do not have an experiment selected!"))
|
||||
return
|
||||
if(!(config_flags & EXPERIMENT_CONFIG_IMMEDIATE_ACTION) && !do_after(user, 1 SECONDS, target = target))
|
||||
if(!(config_flags & EXPERIMENT_CONFIG_IMMEDIATE_ACTION) && !do_after(user, 1 SECOND, target = target))
|
||||
return
|
||||
if(action_experiment(source, target))
|
||||
playsound(user, 'sound/machines/ping.ogg', 25)
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
to_chat(user, span_warning("This disk seems to be corrupted!"))
|
||||
else
|
||||
to_chat(user, span_notice("Installing blueprint files for [D.company]..."))
|
||||
if(do_after(user,50,src))
|
||||
if(do_after(user, 5 SECONDS, target = src))
|
||||
var/datum/robolimb/R = GLOB.all_robolimbs[D.company]
|
||||
R.unavailable_to_build = 0
|
||||
to_chat(user, span_notice("Installed [D.company] blueprints!"))
|
||||
@@ -103,7 +103,7 @@
|
||||
to_chat(user, span_warning("This disk seems to be corrupted!"))
|
||||
else
|
||||
to_chat(user, span_notice("Uploading modification files for [D.species]..."))
|
||||
if(do_after(user,50,src))
|
||||
if(do_after(user, 5 SECONDS, target = src))
|
||||
species_types |= D.species
|
||||
to_chat(user, span_notice("Uploaded [D.species] files!"))
|
||||
qdel(I)
|
||||
|
||||
Reference in New Issue
Block a user