From d8a6576f362190b06dad2e1f8e87a844e133baba Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Mon, 6 Apr 2015 10:46:19 +0200 Subject: [PATCH] Examination fixes. Fixes #8491. Fixes #8579. --- code/ATMOSPHERICS/components/unary/vent_pump.dm | 1 - code/ATMOSPHERICS/components/unary/vent_scrubber.dm | 1 - code/game/machinery/doors/door.dm | 13 ++++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/code/ATMOSPHERICS/components/unary/vent_pump.dm b/code/ATMOSPHERICS/components/unary/vent_pump.dm index 2066a6f9bf..4961d22e79 100644 --- a/code/ATMOSPHERICS/components/unary/vent_pump.dm +++ b/code/ATMOSPHERICS/components/unary/vent_pump.dm @@ -383,7 +383,6 @@ user << "You are too far away to read the gauge." if(welded) user << "It seems welded shut." - ..() /obj/machinery/atmospherics/unary/vent_pump/power_change() var/old_stat = stat diff --git a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm index 8d88ad4db4..63a0549acc 100644 --- a/code/ATMOSPHERICS/components/unary/vent_scrubber.dm +++ b/code/ATMOSPHERICS/components/unary/vent_scrubber.dm @@ -277,7 +277,6 @@ user << "A small gauge in the corner reads [round(last_flow_rate, 0.1)] L/s; [round(last_power_draw)] W" else user << "You are too far away to read the gauge." - ..() /obj/machinery/atmospherics/unary/vent_scrubber/Del() if(initial_loc) diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 19b5b907a8..963a2d4d31 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -143,7 +143,7 @@ return // Emitter Blasts - these will eventually completely destroy the door, given enough time. - if (Proj.damage > 90) + if (Proj.damage > 90) destroy_hits-- if (destroy_hits <= 0) visible_message("\red \The [src.name] disintegrates!") @@ -292,6 +292,17 @@ update_icon() return + +/obj/machinery/door/examine(mob/user) + ..() + if(src.health < src.maxhealth / 4) + user << "\The [src] looks like it's about to break!" + else if(src.health < src.maxhealth / 2) + user << "\The [src] looks seriously damaged!" + else if(src.health < src.maxhealth * 3/4) + user << "\The [src] shows signs of damage!" + + /obj/machinery/door/proc/set_broken() stat |= BROKEN for (var/mob/O in viewers(src, null))