Shifts vars off /mob to the correct subtype

This commit is contained in:
ShizCalev
2018-01-24 12:58:42 -05:00
committed by CitadelStationBot
parent f4a817be01
commit cae2e5e1eb
8 changed files with 42 additions and 37 deletions
+5 -5
View File
@@ -89,17 +89,17 @@
move_delay = world.time
var/oldloc = mob.loc
if(mob.confused)
if(L.confused)
var/newdir = 0
if(mob.confused > 40)
if(L.confused > 40)
newdir = pick(GLOB.alldirs)
else if(prob(mob.confused * 1.5))
else if(prob(L.confused * 1.5))
newdir = angle2dir(dir2angle(direct) + pick(90, -90))
else if(prob(mob.confused * 3))
else if(prob(L.confused * 3))
newdir = angle2dir(dir2angle(direct) + pick(45, -45))
if(newdir)
direct = newdir
n = get_step(mob, direct)
n = get_step(L, direct)
. = ..()