mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
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 Conflicts: code/modules/mob/living/silicon/silicon.dm
This commit is contained in:
@@ -159,7 +159,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"))
|
||||
|
||||
@@ -229,4 +229,3 @@
|
||||
now_pushing = null
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user