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:
moxian
2022-06-06 21:52:13 +01:00
committed by GitHub
parent 052ea35dd7
commit 4097e57f8c
4 changed files with 26 additions and 2 deletions
@@ -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()