From 7052aaa602a82ff4c8b63e9cfad1f2528e1745bb Mon Sep 17 00:00:00 2001 From: Giacomand Date: Tue, 19 Mar 2013 22:40:16 +0000 Subject: [PATCH] * Fixes wallets appearing as "wallet" in the Crew Monitoring computer. It will now show the ID inside. --- code/game/machinery/computer/crew.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/computer/crew.dm b/code/game/machinery/computer/crew.dm index 5f64261a6cf..de141a5c88c 100644 --- a/code/game/machinery/computer/crew.dm +++ b/code/game/machinery/computer/crew.dm @@ -74,6 +74,10 @@ if(istype(C.loc, /mob/living/carbon/human)) var/mob/living/carbon/human/H = C.loc + var/obj/item/ID = null + + if(H.wear_id) + ID = H.wear_id.GetID() var/dam1 = round(H.getOxyLoss(),1) var/dam2 = round(H.getToxLoss(),1) @@ -83,8 +87,8 @@ var/life_status = "[H.stat > 1 ? "Deceased" : "Living"]" var/damage_report = "([dam1]/[dam2]/[dam3]/[dam4])" - if(H.wear_id) - log += "[H.wear_id.name]" + if(ID) + log += "[ID.name]" else log += "Unknown"