Refactoring of the Rotate verb

removes a few unnecessary checks. Still not using setDir yet, as I have
yet to work out how it works. To come!
This commit is contained in:
Sam
2017-02-22 23:07:18 +00:00
parent 5bc8c45e82
commit cde421e0eb
@@ -59,14 +59,17 @@
set category = "Object"
set src in oview(1)
if(!usr || !isturf(usr.loc))
return
if(usr.stat || usr.restrained())
if(config.ghost_interaction)
dir = turn(dir, 90)
handle_rotation()
return
else
if(usr.incapacitated())
return
src.dir = turn(src.dir, 90)
handle_rotation()
return
dir = turn(dir, 90)
handle_rotation()
return
/obj/structure/stool/bed/chair/AltClick(mob/user)
if(user.incapacitated())