mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +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
@@ -59,7 +59,7 @@
|
||||
if(I.has_tool_quality(TOOL_WRENCH))
|
||||
if(!glass)
|
||||
playsound(src, I.usesound, 50, 1)
|
||||
if(do_after(user, 20 * I.toolspeed))
|
||||
if(do_after(user, 2 SECONDS * I.toolspeed, target = src))
|
||||
to_chat(user, span_notice("You unfasten the frame."))
|
||||
new /obj/item/frame/mirror( src.loc )
|
||||
qdel(src)
|
||||
@@ -86,7 +86,7 @@
|
||||
to_chat(user, span_warning("You need two sheets of glass to add them to the frame."))
|
||||
return
|
||||
to_chat(user, span_notice("You start to add the glass to the frame."))
|
||||
if(do_after(user, 20))
|
||||
if(do_after(user, 2 SECONDS, target = src))
|
||||
if (G.use(2))
|
||||
shattered = 0
|
||||
glass = 1
|
||||
|
||||
Reference in New Issue
Block a user