Files
Paradise/code/modules/client/preference/loadout/loadout_glasses.dm
T
d90a70ecda [REFACTOR] Consolidates SLOT_FLAG and SLOT_HUD into one ITEM_SLOT flag (#26743)
* IT WORKS UP UNTIL THIS POINT

* Consolidates SLOT_FLAG and SLOT_HUD into one

* Remove cover_both_ears

* SLOT_HUD to ITEM_SLOT

* Remove clothing_trait changes for the time being

* Remove accidental copy-paste

* Re-add no-slip var

* More failure to copy-paste correctly

* Leftover flag

* Combine left and right slot flags where possible

* UNGOOF MY DEFINES, PHAND IS NOT A THING

* Minor spacing changes

* Some more fixes from merge

* Seperates ITEM SLOT AMOUNT into two defines

* ON SECOND THOUGHT LETS NOT DO THAT.

* Addresses Contra's review

* Thank you GREP

* Rename ITEM_SLOT_FEET to ITEM_SLOT_SHOES

* Added a comment to the bitmasks in clothing defines

* Rename ITEM_SLOT_TIE to ITEM_SLOT_ACCESSORY

* These are for a seperate PR.

* Magboot fixes

* Requested changes

* Re-add accidental removal

* Wrong flags

* Update code/__DEFINES/clothing_defines.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Chap <erwin@lombok.demon.nl>

* Requested changes

* Merge fixes

* Fix double headset

* Fixes multiple accessories

---------

Signed-off-by: Chap <erwin@lombok.demon.nl>
Co-authored-by: Adrer <adrermail@gmail.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
2024-11-13 13:02:29 +00:00

76 lines
2.7 KiB
Plaintext

/*
######################################################################################
## ##
## IMPORTANT README ##
## ##
## Changing any /datum/gear typepaths --WILL-- break people's loadouts. ##
## The typepaths are stored directly in the `characters.gear` column of the DB. ##
## Please inform the server host if you wish to modify any of these. ##
## ##
######################################################################################
*/
/datum/gear/glasses
main_typepath = /datum/gear/glasses
slot = ITEM_SLOT_EYES
sort_category = "Glasses"
/datum/gear/glasses/sunglasses
display_name = "Cheap sunglasses"
path = /obj/item/clothing/glasses/sunglasses_fake
/datum/gear/glasses/eyepatch
display_name = "Eyepatch"
path = /obj/item/clothing/glasses/eyepatch
/datum/gear/glasses/hipster
display_name = "Hipster glasses"
path = /obj/item/clothing/glasses/regular/hipster
/datum/gear/glasses/monocle
display_name = "Monocle"
path = /obj/item/clothing/glasses/monocle
/datum/gear/glasses/prescription
display_name = "Prescription glasses"
path = /obj/item/clothing/glasses/regular
/datum/gear/glasses/sechud
display_name = "Classic security HUD"
path = /obj/item/clothing/glasses/hud/security
allowed_roles = list("Head of Security", "Warden", "Security Officer", "Internal Affairs Agent","Magistrate")
/datum/gear/glasses/goggles
display_name = "Goggles"
path = /obj/item/clothing/glasses/goggles
/datum/gear/glasses/goggles_job
main_typepath = /datum/gear/glasses/goggles_job
subtype_selection_cost = FALSE
/datum/gear/glasses/goggles_job/sechudgoggles
display_name = "Security HUD goggles"
path = /obj/item/clothing/glasses/hud/security/goggles
allowed_roles = list("Head of Security", "Warden", "Security Officer", "Internal Affairs Agent", "Magistrate")
/datum/gear/glasses/goggles_job/medhudgoggles
display_name = "Health HUD goggles"
path = /obj/item/clothing/glasses/hud/health/goggles
allowed_roles = list("Chief Medical Officer", "Medical Doctor", "Coroner", "Chemist", "Geneticist", "Virologist", "Psychiatrist", "Paramedic")
/datum/gear/glasses/goggles_job/diaghudgoggles
display_name = "Diagnostic HUD goggles"
path = /obj/item/clothing/glasses/hud/diagnostic/goggles
allowed_roles = list("Research Director", "Scientist", "Roboticist")
/datum/gear/glasses/goggles_job/hydrohudgoggles
display_name = "Hydroponic HUD goggles"
path = /obj/item/clothing/glasses/hud/hydroponic/goggles
allowed_roles = list("Botanist")
/datum/gear/glasses/goggles_job/skillhudgoggles
display_name = "Skill HUD goggles"
path = /obj/item/clothing/glasses/hud/skills/goggles
allowed_roles = list("Psychiatrist", "Nanotrasen Representative", "Head of Personnel", "Captain")