From 5e9e2cbd16d14482492491a1f00417c1168bb92a Mon Sep 17 00:00:00 2001 From: Krausus Date: Wed, 29 Apr 2015 08:09:30 -0400 Subject: [PATCH] Fixes Cyborg Analyzer not showing destroyed components --- code/modules/mob/living/silicon/robot/robot_damage.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/robot_damage.dm b/code/modules/mob/living/silicon/robot/robot_damage.dm index 81df60fa1e5..f01b7abbd7c 100644 --- a/code/modules/mob/living/silicon/robot/robot_damage.dm +++ b/code/modules/mob/living/silicon/robot/robot_damage.dm @@ -32,11 +32,11 @@ else heal_overall_damage(0, -amount) -/mob/living/silicon/robot/proc/get_damaged_components(var/brute, var/burn) +/mob/living/silicon/robot/proc/get_damaged_components(var/brute, var/burn, var/get_all) var/list/datum/robot_component/parts = list() for(var/V in components) var/datum/robot_component/C = components[V] - if(C.installed == 1) if((brute && C.brute_damage) || (burn && C.electronics_damage)) + if(C.installed == 1 || get_all) if((brute && C.brute_damage) || (burn && C.electronics_damage)) parts += C return parts