- Only humans can now use the toggle open and toggle lock verbs on closets.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3742 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-06-04 22:58:39 +00:00
parent fa65c484cd
commit c1d45ea42e
2 changed files with 9 additions and 4 deletions

View File

@@ -227,4 +227,7 @@
if(!usr.canmove || usr.stat || usr.restrained())
return
src.attack_hand(usr)
if(ishuman(usr))
src.attack_hand(usr)
else
usr << "\red This mob type can't use this verb."

View File

@@ -108,6 +108,8 @@
if(!usr.canmove || usr.stat || usr.restrained()) // Don't use it if you're not able to! Checks for stuns, ghost and restrain
return
if(!opened) // If we let him lock it while it's open, it will close without the items inside going with it
togglelock(usr)
if (ishuman(usr))
if (!opened)
togglelock(usr)
else
usr << "\red This mob type can't use this verb."