This commit is contained in:
Fox McCloud
2021-09-30 18:16:26 -04:00
parent 4e0c76ac63
commit 9baf3e527d
3 changed files with 27 additions and 27 deletions
+4 -4
View File
@@ -512,8 +512,8 @@
var/mob/living/carbon/human/U = user
if(istype(U.glasses, /obj/item/clothing/glasses/hud/diagnostic)) // If they are for some reason wearing a diagnostic hud when they put the helmet on
return // already have a hud
var/datum/atom_hud/H = GLOB.huds[DATA_HUD_DIAGNOSTIC]
H.add_hud_to(U)
var/datum/atom_hud/DHUD = GLOB.huds[DATA_HUD_DIAGNOSTIC_BASIC]
DHUD.add_hud_to(user)
hud_active = TRUE
@@ -521,8 +521,8 @@
..()
if((user.head == src) && hud_active)
GLOB.doppler_arrays -= src
var/datum/atom_hud/H = GLOB.huds[DATA_HUD_DIAGNOSTIC]
H.remove_hud_from(user)
var/datum/atom_hud/DHUD = GLOB.huds[DATA_HUD_DIAGNOSTIC_BASIC]
DHUD.remove_hud_from(user)
/obj/item/clothing/head/helmet/space/hardsuit/rd/proc/sense_explosion(x0, y0, z0, devastation_range, heavy_impact_range,
light_impact_range, took, orig_dev_range, orig_heavy_range, orig_light_range)
+1 -1
View File
@@ -13,7 +13,7 @@ GLOBAL_DATUM_INIT(ghost_hud_panel, /datum/ui_module/ghost_hud_panel, new)
var/list/hud_type_lookup = list(
"medical" = DATA_HUD_MEDICAL_ADVANCED,
"security" = DATA_HUD_SECURITY_ADVANCED,
"diagnostic" = DATA_HUD_DIAGNOSTIC
"diagnostic" = DATA_HUD_DIAGNOSTIC_ADVANCED
)
/datum/ui_module/ghost_hud_panel/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.observer_state)