Code optimization

This commit is contained in:
ZomgPonies
2013-12-21 04:42:07 -05:00
parent 1a3dc5ab2f
commit 0c7378a4ab
@@ -70,15 +70,8 @@
G.process()
if(!client && stat == CONSCIOUS)
if(prob(33) && canmove && isturf(loc))
var/isBeingPulled = 0
for(var/mob/M in range(src, 1)) //won't move if being pulled
if(M.pulling == src)
isBeingPulled = 1
if(isBeingPulled == 0)
step(src, pick(cardinal))
if(prob(33) && canmove && isturf(loc) && !pulledby) //won't move if being pulled
step(src, pick(cardinal))
if(prob(1))
emote(pick("scratch","jump","roll","tail"))