mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
- 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:
@@ -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."
|
||||
|
||||
@@ -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."
|
||||
Reference in New Issue
Block a user