From c8487db13ba7d0ab78565d1d313963b1628c06b4 Mon Sep 17 00:00:00 2001 From: Techhead0 Date: Mon, 13 Apr 2015 04:31:27 -0400 Subject: [PATCH] Eject Tank verb and span classes Now you can eject your tank onto the ground while wearing the suit. Toggle Helmet verb now uses span classes. --- code/modules/clothing/spacesuits/void/void.dm | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/spacesuits/void/void.dm b/code/modules/clothing/spacesuits/void/void.dm index e515b9a02b..235f78783b 100644 --- a/code/modules/clothing/spacesuits/void/void.dm +++ b/code/modules/clothing/spacesuits/void/void.dm @@ -139,7 +139,7 @@ if(H.wear_suit != src) return if(H.head == helmet) - H << "\blue You retract your suit helmet." + H << "You retract your suit helmet." helmet.canremove = 1 H.drop_from_inventory(helmet) helmet.loc = src @@ -150,9 +150,32 @@ if(H.equip_to_slot_if_possible(helmet, slot_head)) helmet.pickup(H) helmet.canremove = 0 - H << "You deploy your suit helmet, sealing you off from the world." + H << "You deploy your suit helmet, sealing you off from the world." helmet.update_light(H) +/obj/item/clothing/suit/space/void/verb/eject_tank() + + set name = "Eject Tank" + set category = "Object" + set src in usr + + if(!istype(src.loc,/mob/living)) return + + if(!tank) + usr << "There is no tank inserted." + return + + var/mob/living/carbon/human/H = usr + + if(!istype(H)) return + if(H.stat) return + if(H.wear_suit != src) return + + H << "You press the emergency release, ejecting \the [tank] from your suit." + tank.canremove = 1 + H.drop_from_inventory(tank) + src.tank = null + /obj/item/clothing/suit/space/void/attackby(obj/item/W as obj, mob/user as mob) if(!istype(user,/mob/living)) return