mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-27 18:41:59 +00:00
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.
This commit is contained in:
@@ -131,18 +131,6 @@
|
||||
else if(M.stat == 2 && M.client.prefs.toggles & CHAT_GHOSTEARS)
|
||||
if(M.client) M << "<b>[src]</b> 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user