Examination fixes.

Fixes #8491.
Fixes #8579.
This commit is contained in:
PsiOmega
2015-04-06 10:46:19 +02:00
parent f22a386e43
commit d8a6576f36
3 changed files with 12 additions and 3 deletions
+12 -1
View File
@@ -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 <B>\The [src.name] disintegrates!</B>")
@@ -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))