Fix conflicts between helmet/mech HUDs and HUD glasses

This commit is contained in:
oranges
2017-11-17 10:38:44 +13:00
committed by CitadelStationBot
parent 0e0eb351b3
commit 952fa2a0f2
5 changed files with 39 additions and 18 deletions
+27
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
/obj/mecha/medical/odysseus
desc = "These exosuits are developed and produced by Vey-Med. (&copy; All rights reserved)."
name = "\improper Odysseus"
@@ -31,3 +32,29 @@
..()
return
=======
/obj/mecha/medical/odysseus
desc = "These exosuits are developed and produced by Vey-Med. (&copy; All rights reserved)."
name = "\improper Odysseus"
icon_state = "odysseus"
step_in = 3
max_temperature = 15000
max_integrity = 120
wreckage = /obj/structure/mecha_wreckage/odysseus
internal_damage_threshold = 35
deflect_chance = 15
step_energy_drain = 6
/obj/mecha/medical/odysseus/moved_inside(mob/living/carbon/human/H)
. = ..()
if(.)
var/datum/atom_hud/hud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
hud.add_hud_to(H)
/obj/mecha/medical/odysseus/go_out()
if(ishuman(occupant))
var/mob/living/carbon/human/H = occupant
var/datum/atom_hud/hud = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
hud.remove_hud_from(H)
..()
>>>>>>> f533391... Merge pull request #32622 from AutomaticFrenzy/patch/odysseus