mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +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
@@ -88,7 +88,7 @@
|
||||
/obj/structure/bonfire/proc/dismantle(mob/user)
|
||||
if(!burning)
|
||||
user.visible_message("[user] starts dismantling \the [src].", "You start dismantling \the [src].")
|
||||
if(do_after(user, 5 SECONDS))
|
||||
if(do_after(user, 5 SECONDS, target = src))
|
||||
for(var/i = 1 to 5)
|
||||
material.place_dismantled_product(get_turf(src))
|
||||
user.visible_message("[user] dismantles down \the [src].", "You dismantle \the [src].")
|
||||
|
||||
Reference in New Issue
Block a user