mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #7085 from Hubblenaut/hud
MedicalHUD takes hardcrit in account
This commit is contained in:
@@ -98,7 +98,7 @@
|
|||||||
holder.icon_state = "hudhealth-100"
|
holder.icon_state = "hudhealth-100"
|
||||||
C.images += holder
|
C.images += holder
|
||||||
else
|
else
|
||||||
holder.icon_state = "hud[RoundHealth(patient.health)]"
|
holder.icon_state = "hud[RoundHealth((patient.health-config.health_threshold_crit)/(patient.species.total_health-config.health_threshold_crit)*100)]"
|
||||||
C.images += holder
|
C.images += holder
|
||||||
|
|
||||||
holder = patient.hud_list[STATUS_HUD]
|
holder = patient.hud_list[STATUS_HUD]
|
||||||
|
|||||||
@@ -1688,7 +1688,7 @@
|
|||||||
if(stat == 2)
|
if(stat == 2)
|
||||||
holder.icon_state = "hudhealth-100" // X_X
|
holder.icon_state = "hudhealth-100" // X_X
|
||||||
else
|
else
|
||||||
var/percentage_health = RoundHealth(((0.0+health)/species.total_health)*100)
|
var/percentage_health = RoundHealth((health-config.health_threshold_crit)/(species.total_health-config.health_threshold_crit)*100)
|
||||||
holder.icon_state = "hud[percentage_health]"
|
holder.icon_state = "hud[percentage_health]"
|
||||||
hud_list[HEALTH_HUD] = holder
|
hud_list[HEALTH_HUD] = holder
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user