Fixed airless misc research.

Added an intercom and air alarm to xenobiology.

Fixed a bug which allowed aliens to take and use fire extinguishers from cabinets.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5496 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2013-01-08 20:10:07 +00:00
parent 7af1bc4027
commit 285bbf6eb4
2 changed files with 4194 additions and 4194 deletions
+10 -12
View File
@@ -9,16 +9,15 @@
var/opened = 0
/obj/structure/extinguisher_cabinet/attackby(var/obj/item/O as obj, var/mob/user as mob)
if (isrobot(usr))
/obj/structure/extinguisher_cabinet/attackby(obj/item/O, mob/user)
if(isrobot(user) || isalien(user))
return
if (istype(O, /obj/item/weapon/extinguisher))
if(istype(O, /obj/item/weapon/extinguisher))
if(!has_extinguisher && opened)
user.drop_item(O)
src.contents += O
contents += O
has_extinguisher = O
user << "\blue You place the extinguisher in the [src.name]."
user << "<span class='notice'>You place [O] in [src].</span>"
else
opened = !opened
else
@@ -26,25 +25,24 @@
update_icon()
/obj/structure/extinguisher_cabinet/attack_hand(mob/user as mob)
/obj/structure/extinguisher_cabinet/attack_hand(mob/user)
if(isrobot(user) || isalien(user))
return
if(has_extinguisher)
user.put_in_hands(has_extinguisher)
user << "<span class='notice'>You take [has_extinguisher] from [src].</span>"
has_extinguisher = null
user << "\blue You take the extinguisher from the [name]."
opened = 1
else
opened = !opened
update_icon()
/obj/structure/extinguisher_cabinet/attack_paw(mob/user as mob)
/obj/structure/extinguisher_cabinet/attack_paw(mob/user)
attack_hand(user)
return
/obj/structure/extinguisher_cabinet/update_icon()
if(!opened)
icon_state = "extinguisher_closed"