mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Makes uses of do_after sane (#11582)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2c34c93e00
commit
1b8f394a14
@@ -46,7 +46,7 @@
|
||||
else if(O.has_tool_quality(TOOL_SCREWDRIVER))
|
||||
playsound(src, O.usesound, 75, 1)
|
||||
to_chat(user, span_notice("You begin dismantling \the [src]."))
|
||||
if(do_after(user,25 * O.toolspeed))
|
||||
if(do_after(user, 25 * O.toolspeed, target = src))
|
||||
to_chat(user, span_notice("You dismantle \the [src]."))
|
||||
new /obj/item/stack/material/wood(get_turf(src), 3)
|
||||
for(var/obj/item/book/b in contents)
|
||||
@@ -287,7 +287,7 @@ Book Cart End
|
||||
else if(istype(W, /obj/item/material/knife) || W.has_tool_quality(TOOL_WIRECUTTER))
|
||||
if(carved) return
|
||||
to_chat(user, span_notice("You begin to carve out [title]."))
|
||||
if(do_after(user, 30))
|
||||
if(do_after(user, 3 SECONDS, target = src))
|
||||
to_chat(user, span_notice("You carve out the pages from [title]! You didn't want to read it anyway."))
|
||||
playsound(src, 'sound/bureaucracy/papercrumple.ogg', 50, 1)
|
||||
new /obj/item/shreddedp(get_turf(src))
|
||||
|
||||
Reference in New Issue
Block a user