From 292f8adfe02e8e6dd18abbabcfafa63e67739e20 Mon Sep 17 00:00:00 2001 From: Walter0o Date: Wed, 2 Jul 2014 18:06:25 +0200 Subject: [PATCH] fixes weird silicon health status a non-damaged cyborg has 200 health. in the current proc, that is shown as (200+100)/2 = 150 % health a dead borg has 0 health. in the current proc, that is shown as (0+100)/2 = 50 % health --- code/modules/mob/living/silicon/silicon.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm index adbddb736ff..def23817765 100644 --- a/code/modules/mob/living/silicon/silicon.dm +++ b/code/modules/mob/living/silicon/silicon.dm @@ -6,7 +6,7 @@ var/datum/ai_laws/laws = null//Now... THEY ALL CAN ALL HAVE LAWS immune_to_ssd = 1 var/list/hud_list[9] - var/list/speech_synthesizer_langs = list() //which languages can be vocalized by the speech synthesizer + var/list/speech_synthesizer_langs = list() //which languages can be vocalized by the speech synthesizer /mob/living/silicon/proc/show_laws() return @@ -80,7 +80,7 @@ // this function shows the health of the pAI in the Status panel /mob/living/silicon/proc/show_system_integrity() if(!src.stat) - stat(null, text("System integrity: [(src.health+100)/2]%")) + stat(null, text("System integrity: [round((health/maxHealth)*100)]%")) else stat(null, text("Systems nonfunctional")) @@ -157,4 +157,4 @@ dat += "[L.name] (:[L.key])
Speech Synthesizer: [(L in speech_synthesizer_langs)? "YES":"NOT SUPPORTED"]
[L.desc]

" src << browse(dat, "window=checklanguage") - return + return