mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +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
@@ -134,7 +134,7 @@ var/list/global/tank_gauge_cache = list()
|
||||
if(wired && src.proxyassembly.assembly)
|
||||
|
||||
to_chat(user, span_notice("You carefully begin clipping the wires that attach to the tank."))
|
||||
if(do_after(user, 100,src))
|
||||
if(do_after(user, 10 SECONDS, target = src))
|
||||
wired = 0
|
||||
cut_overlay("bomb_assembly")
|
||||
to_chat(user, span_notice("You cut the wire and remove the device."))
|
||||
@@ -161,7 +161,7 @@ var/list/global/tank_gauge_cache = list()
|
||||
src.proxyassembly.receive_signal()
|
||||
|
||||
else if(wired)
|
||||
if(do_after(user, 10, src))
|
||||
if(do_after(user, 1 SECOND, target = src))
|
||||
to_chat(user, span_notice("You quickly clip the wire from the tank."))
|
||||
wired = 0
|
||||
cut_overlay("bomb_assembly")
|
||||
@@ -174,7 +174,7 @@ var/list/global/tank_gauge_cache = list()
|
||||
if(istype(W, /obj/item/assembly_holder))
|
||||
if(wired)
|
||||
to_chat(user, span_notice("You begin attaching the assembly to \the [src]."))
|
||||
if(do_after(user, 50, src))
|
||||
if(do_after(user, 5 SECONDS, target = src))
|
||||
to_chat(user, span_notice("You finish attaching the assembly to \the [src]."))
|
||||
GLOB.bombers += "[key_name(user)] attached an assembly to a wired [src]. Temp: [src.air_contents.temperature-T0C]"
|
||||
message_admins("[key_name_admin(user)] attached an assembly to a wired [src]. Temp: [src.air_contents.temperature-T0C]")
|
||||
@@ -190,7 +190,7 @@ var/list/global/tank_gauge_cache = list()
|
||||
if(WT.remove_fuel(1,user))
|
||||
if(!valve_welded)
|
||||
to_chat(user, span_notice("You begin welding the \the [src] emergency pressure relief valve."))
|
||||
if(do_after(user, 40,src))
|
||||
if(do_after(user, 4 SECONDS, target = src))
|
||||
to_chat(user, span_notice("You carefully weld \the [src] emergency pressure relief valve shut.") + " " + span_warning("\The [src] may now rupture under pressure!"))
|
||||
src.valve_welded = 1
|
||||
src.leaking = 0
|
||||
|
||||
Reference in New Issue
Block a user