From d27f7ef799068e34f9c33b18ca1c06b45a06f10d Mon Sep 17 00:00:00 2001 From: Techhead0 Date: Mon, 13 Apr 2015 08:35:51 -0400 Subject: [PATCH] Voidsuit Examine info. Examining voidsuits will tell you what items are installed (with tiny icons) and the pressure of any installed tanks. --- code/modules/clothing/spacesuits/void/void.dm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/code/modules/clothing/spacesuits/void/void.dm b/code/modules/clothing/spacesuits/void/void.dm index 235f78783b..6854513138 100644 --- a/code/modules/clothing/spacesuits/void/void.dm +++ b/code/modules/clothing/spacesuits/void/void.dm @@ -57,6 +57,20 @@ var/obj/item/clothing/head/helmet/helmet = null // Deployable helmet, if any. var/obj/item/weapon/tank/tank = null // Deployable tank, if any. +/obj/item/clothing/suit/space/void/examine(user) + ..(user) + if(boots || helmet || tank) + var/D = "Installed equipment: " + var/first = 1 + for(var/obj/item/I in list(helmet,boots,tank)) + if (I) + D += "[first?"":", "]\the [I]\icon[I]" + first = 0 + D += "." + user << D + if(tank && in_range(src,user)) + user << "The wrist-mounted pressure gauge reads [max(round(tank.air_contents.return_pressure()),0)] kPa remaining in \the [tank]." + /obj/item/clothing/suit/space/void/refit_for_species(var/target_species) ..() if(istype(helmet)) @@ -115,7 +129,7 @@ boots.canremove = 1 H.drop_from_inventory(boots) boots.loc = src - + if(tank) tank.canremove = 1 tank.loc = src