Added a cooldown to CLONG CLONG from moving in disposals.

This commit is contained in:
Zuhayr
2014-05-12 15:00:52 +09:30
committed by ZomgPonies
parent e1bfc3cfe0
commit 69e4fa1801
+10 -1
View File
@@ -610,8 +610,17 @@
// called when player tries to move while in a pipe
relaymove(mob/user as mob)
if (user.stat)
if(!istype(user,/mob/living))
return
var/mob/living/U = user
if (U.stat || U.last_special <= world.time)
return
U.last_special = world.time+100
if (src.loc)
for (var/mob/M in hearers(src.loc.loc))
M << "<FONT size=[max(0, 5 - get_dist(src, M))]>CLONG, clong!</FONT>"