Update mob_movement.dm

This commit is contained in:
kevinz000
2020-04-22 22:46:42 -07:00
committed by GitHub
parent af222768fe
commit b398e65416
+4 -4
View File
@@ -80,12 +80,12 @@
var/oldloc = mob.loc
if(L.confused)
var/newdir = 0
if(L.confused > 40)
var/newdir = NONE
if((L.confused > 50) && prob(min(L.confused * 0.5), 50))
newdir = pick(GLOB.alldirs)
else if(prob(L.confused * 1.5))
else if(prob(L.confused))
newdir = angle2dir(dir2angle(direction) + pick(90, -90))
else if(prob(L.confused * 3))
else if(prob(L.confused * 2))
newdir = angle2dir(dir2angle(direction) + pick(45, -45))
if(newdir)
direction = newdir