Added var/small to mobs, which currently only handles if they can open airlocks. This replaces the use of ismouse().

This commit is contained in:
RavingManiac
2013-02-19 22:10:27 +08:00
parent 254b5cccd4
commit 839d4cb6c8
9 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -910,7 +910,7 @@ About the new airlock wires panel:
/obj/machinery/door/airlock/Topic(href, href_list, var/nowindow = 0)
if(!nowindow)
..()
if(usr.stat || usr.restrained()|| ismouse(usr))
if(usr.stat || usr.restrained()|| usr.small)
return
add_fingerprint(usr)
if(href_list["close"])
+1 -1
View File
@@ -47,7 +47,7 @@
var/mob/M = AM
if(world.time - M.last_bumped <= 10) return //Can bump-open one airlock per second. This is to prevent shock spam.
M.last_bumped = world.time
if(!M.restrained() && !ismouse(M))
if(!M.restrained() && !M.small)
bumpopen(M)
return