mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +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
@@ -716,7 +716,7 @@
|
||||
|
||||
if(stored_item && opened && !searching)
|
||||
searching = TRUE
|
||||
if(do_after(user, 10))
|
||||
if(do_after(user, 1 SECOND, target = src))
|
||||
to_chat(user, "You find [icon2html(stored_item, user.client)] [stored_item] in [src]!")
|
||||
stored_item.forceMove(get_turf(src))
|
||||
stored_item = null
|
||||
@@ -824,7 +824,7 @@
|
||||
/obj/item/toy/plushie/attack_self(mob/user as mob)
|
||||
if(stored_item && opened && !searching)
|
||||
searching = TRUE
|
||||
if(do_after(user, 10))
|
||||
if(do_after(user, 1 SECOND, target = src))
|
||||
to_chat(user, "You find [icon2html(stored_item, user.client)] [stored_item] in [src]!")
|
||||
stored_item.forceMove(get_turf(src))
|
||||
stored_item = null
|
||||
|
||||
Reference in New Issue
Block a user