Skip to content

Commit

Permalink
[MIRROR] Deletes hug glasses hud_trait, use clothing_traits inste…
Browse files Browse the repository at this point in the history
…ad [MDB IGNORE] (#827)

* Deletes hug glasses `hud_trait`, use `clothing_traits` instead

* Fix Merge Conflict

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Waterpig <[email protected]>
Co-authored-by: Bloop <[email protected]>
Co-authored-by: SomeRandomOwl <[email protected]>
  • Loading branch information
5 people authored Nov 26, 2023
1 parent 5965416 commit 3ba2a16
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions code/modules/clothing/glasses/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
desc = "A heads-up display that provides important info in (almost) real time."
flags_1 = null //doesn't protect eyes because it's a monocle, duh
var/hud_type = null
///Used for topic calls. Just because you have a HUD display doesn't mean you should be able to interact with stuff.
var/hud_trait = null

// NOTE: Just because you have a HUD display doesn't mean you should be able to interact with stuff on examine, that's where the associated trait (TRAIT_MEDICAL_HUD, TRAIT_SECURITY_HUD, etc) is necessary.

/obj/item/clothing/glasses/hud/equipped(mob/living/carbon/human/user, slot)
..()
Expand All @@ -13,8 +13,6 @@
if(hud_type)
var/datum/atom_hud/our_hud = GLOB.huds[hud_type]
our_hud.show_to(user)
if(hud_trait)
ADD_TRAIT(user, hud_trait, GLASSES_TRAIT)

/obj/item/clothing/glasses/hud/dropped(mob/living/carbon/human/user)
..()
Expand All @@ -23,8 +21,6 @@
if(hud_type)
var/datum/atom_hud/our_hud = GLOB.huds[hud_type]
our_hud.hide_from(user)
if(hud_trait)
REMOVE_TRAIT(user, hud_trait, GLASSES_TRAIT)

/obj/item/clothing/glasses/hud/emp_act(severity)
. = ..()
Expand Down Expand Up @@ -60,7 +56,7 @@
desc = "A heads-up display that scans the humanoids in view and provides accurate data about their health status."
icon_state = "healthhud"
hud_type = DATA_HUD_MEDICAL_ADVANCED
hud_trait = TRAIT_MEDICAL_HUD
clothing_traits = list(TRAIT_MEDICAL_HUD)
glass_colour_type = /datum/client_colour/glass_colour/lightblue

/obj/item/clothing/glasses/hud/health/night
Expand Down Expand Up @@ -108,7 +104,7 @@
desc = "A heads-up display capable of analyzing the integrity and status of robotics and exosuits."
icon_state = "diagnostichud"
hud_type = DATA_HUD_DIAGNOSTIC_BASIC
hud_trait = TRAIT_DIAGNOSTIC_HUD
clothing_traits = list(TRAIT_DIAGNOSTIC_HUD)
glass_colour_type = /datum/client_colour/glass_colour/lightorange

/obj/item/clothing/glasses/hud/diagnostic/night
Expand Down Expand Up @@ -145,7 +141,7 @@
desc = "A heads-up display that scans the humanoids in view and provides accurate data about their ID status and security records."
icon_state = "securityhud"
hud_type = DATA_HUD_SECURITY_ADVANCED
hud_trait = TRAIT_SECURITY_HUD
clothing_traits = list(TRAIT_SECURITY_HUD)
glass_colour_type = /datum/client_colour/glass_colour/red

/obj/item/clothing/glasses/hud/security/chameleon
Expand Down

0 comments on commit 3ba2a16

Please sign in to comment.