mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user