mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +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
@@ -629,7 +629,7 @@
|
||||
|
||||
visible_message("[usr] [on_enter_visible_message] [src].", 3)
|
||||
|
||||
if(do_after(usr, 20))
|
||||
if(do_after(usr, 2 SECONDS, target = src))
|
||||
|
||||
if(!usr || !usr.client)
|
||||
return
|
||||
@@ -726,7 +726,7 @@
|
||||
else
|
||||
visible_message("\The [user] starts putting [M] into \the [src].", 3)
|
||||
|
||||
if(do_after(user, 20))
|
||||
if(do_after(user, 2 SECONDS, target = src))
|
||||
if(occupant)
|
||||
to_chat(user, span_warning("\The [src] is already occupied."))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user