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:
@@ -134,7 +134,7 @@ GLOBAL_LIST_INIT(generic_fishing_chance_list, list(FISHING_RARE = 5, FISHING_UNC
|
||||
being_fished = TRUE
|
||||
R.cast = TRUE
|
||||
var/fishing_time = rand(min_fishing_time SECONDS,max_fishing_time SECONDS) * R.toolspeed
|
||||
if(do_after(user,fishing_time,user))
|
||||
if(do_after(user, fishing_time, target = user))
|
||||
playsound(src, 'sound/effects/slosh.ogg', 5, 1, 5)
|
||||
to_chat(user,span_notice("You feel a tug and begin pulling!"))
|
||||
if(world.time >= last_fished + fishing_cooldown)
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
if(C.get_amount() < 5)
|
||||
to_chat(user, span_warning("You do not have enough length in \the [C] to string this!"))
|
||||
return
|
||||
if(do_after(user, rand(10 SECONDS, 20 SECONDS)))
|
||||
if(do_after(user, rand(10 SECONDS, 20 SECONDS), target = src))
|
||||
C.use(5)
|
||||
strung = TRUE
|
||||
to_chat(user, span_notice("You string \the [src]!"))
|
||||
|
||||
Reference in New Issue
Block a user