mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Move IPCs from being shown on medhud to diagnostic hud (#17897)
* Move IPCs from being shown on medhud to diagnostic hud * review + runtime fix * missed this one
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
/mob/living/carbon/human
|
||||
|
||||
hud_possible = list(HEALTH_HUD,STATUS_HUD,ID_HUD,WANTED_HUD,IMPMINDSHIELD_HUD,IMPCHEM_HUD,IMPTRACK_HUD,SPECIALROLE_HUD,GLAND_HUD)
|
||||
hud_possible = list(
|
||||
HEALTH_HUD, STATUS_HUD, SPECIALROLE_HUD, // from /mob/living
|
||||
ID_HUD, WANTED_HUD, IMPMINDSHIELD_HUD, IMPCHEM_HUD, IMPTRACK_HUD, GLAND_HUD,
|
||||
DIAG_STAT_HUD, DIAG_HUD // for IPCs
|
||||
)
|
||||
pressure_resistance = 25
|
||||
mob_biotypes = MOB_ORGANIC | MOB_HUMANOID
|
||||
blocks_emissive = EMISSIVE_BLOCK_UNIQUE
|
||||
|
||||
@@ -83,11 +83,23 @@
|
||||
..()
|
||||
monitor = new()
|
||||
monitor.Grant(H)
|
||||
for(var/datum/atom_hud/data/human/medical/medhud in GLOB.huds)
|
||||
medhud.remove_from_hud(H)
|
||||
for(var/datum/atom_hud/data/diagnostic/diag_hud in GLOB.huds)
|
||||
diag_hud.add_to_hud(H)
|
||||
H.med_hud_set_health()
|
||||
H.med_hud_set_status()
|
||||
|
||||
/datum/species/machine/on_species_loss(mob/living/carbon/human/H)
|
||||
..()
|
||||
if(monitor)
|
||||
monitor.Remove(H)
|
||||
for(var/datum/atom_hud/data/diagnostic/diag_hud in GLOB.huds)
|
||||
diag_hud.remove_from_hud(H)
|
||||
for(var/datum/atom_hud/data/human/medical/medhud in GLOB.huds)
|
||||
medhud.add_to_hud(H)
|
||||
H.med_hud_set_health()
|
||||
H.med_hud_set_status()
|
||||
|
||||
/datum/species/machine/handle_death(gibbed, mob/living/carbon/human/H)
|
||||
var/obj/item/organ/external/head/head_organ = H.get_organ("head")
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
create_debug_log("woke up, trigger reason: [reason]")
|
||||
update_damage_hud()
|
||||
update_health_hud()
|
||||
med_hud_set_health()
|
||||
med_hud_set_status()
|
||||
|
||||
/mob/living/carbon/update_stamina()
|
||||
|
||||
Reference in New Issue
Block a user