mobility flags

This commit is contained in:
kevinz000
2020-01-12 11:00:12 -08:00
parent 0fc6d0e891
commit b341818f04
20 changed files with 41 additions and 41 deletions
+3 -3
View File
@@ -113,14 +113,14 @@
return ..()
/obj/structure/bookcase/attack_hand(mob/user)
/obj/structure/bookcase/attack_hand(mob/living/user)
. = ..()
if(.)
if(. || !istype(user))
return
if(contents.len)
var/obj/item/book/choice = input("Which book would you like to remove from the shelf?") as null|obj in contents
if(choice)
if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr))
if(!CHECK_MOBILITY(user, MOBILITY_USE) || !in_range(loc, user))
return
if(ishuman(user))
if(!user.get_active_held_item())