mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 07:35: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:
@@ -96,7 +96,7 @@
|
||||
return
|
||||
to_chat(user, span_notice("Assembling grille..."))
|
||||
in_use = 1
|
||||
if (!do_after(user, 10))
|
||||
if (!do_after(user, 1 SECOND, target = src))
|
||||
in_use = 0
|
||||
return
|
||||
var/obj/structure/grille/F = new /obj/structure/grille/ ( user.loc )
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
if(W.sharp && W.edge)
|
||||
var/time = (3 SECONDS / max(W.force / 10, 1)) * W.toolspeed
|
||||
user.setClickCooldown(time)
|
||||
if(do_after(user, time, src) && use(1))
|
||||
if(do_after(user, time, target = src) && use(1))
|
||||
to_chat(user, span_notice("You cut up a log into planks."))
|
||||
playsound(src, 'sound/effects/woodcutting.ogg', 50, 1)
|
||||
var/obj/item/stack/material/wood/existing_wood = null
|
||||
|
||||
Reference in New Issue
Block a user