From 895302e28ae5d75e74143fc01bba05ceebc9a0a8 Mon Sep 17 00:00:00 2001 From: Walter0o Date: Wed, 2 Jul 2014 18:15:08 +0200 Subject: [PATCH] fixes weird drone health status a non-damaged drone has 35 health and 35 maxHealth. in the current proc, that is shown as (( 35 +35)/(35*2))*100 = 100 % health a drone at half its health has 17.5 health. current proc : (( 17.5 +35)/(35*2))*100 = 75 % health a dead drone has 0 health. current proc : ( 0 +35)/(35*2))*100 = 50 % health as i fixed this proc in the silicon parent proc, this can be removed. --- code/modules/mob/living/silicon/robot/drone/drone.dm | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm index 243e88224ce..44f859bb521 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone.dm @@ -132,18 +132,6 @@ else if(M.stat == 2 && M.client.prefs.toggles & CHAT_GHOSTEARS) if(M.client) M << "[src] transmits, \"[message]\"" -//Sick of trying to get this to display properly without redefining it. -/mob/living/silicon/robot/drone/show_system_integrity() - if(!src.stat) - var/temphealth = health+35 //Brings it to 0. - if(temphealth<0) temphealth = 0 - //Convert to percentage. - temphealth = (temphealth / (maxHealth*2)) * 100 - - stat(null, text("System integrity: [temphealth]%")) - else - stat(null, text("Systems nonfunctional")) - //Drones cannot be upgraded with borg modules so we need to catch some items before they get used in ..(). /mob/living/silicon/robot/drone/attackby(obj/item/weapon/W as obj, mob/user as mob)