Files
Aurora.3/code/modules/client/preference_setup/loadout/loadout_head.dm
2022-05-14 11:52:50 +02:00

382 lines
15 KiB
Plaintext

/datum/gear/head
display_name = "ushanka"
path = /obj/item/clothing/head/ushanka
slot = slot_head
sort_category = "Hats and Headwear"
/datum/gear/head/New()
..()
gear_tweaks += list(gear_tweak_hair_block)
/datum/gear/head/ushanka_grey
display_name = "ushanka, grey"
path = /obj/item/clothing/head/ushanka/grey
/datum/gear/head/bandana
display_name = "bandana selection"
description = "A selection of bandanas. Comes in departmental colors."
path = /obj/item/clothing/head/bandana
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/bandana/New()
..()
var/list/bandanas = list()
bandanas["bandana"] = /obj/item/clothing/head/bandana
bandanas["bandana, red"] = /obj/item/clothing/head/bandana/red
bandanas["bandana, captain"] = /obj/item/clothing/head/bandana/captain
bandanas["bandana, security"] = /obj/item/clothing/head/bandana/security
bandanas["bandana, science"] = /obj/item/clothing/head/bandana/science
bandanas["bandana, medical"] = /obj/item/clothing/head/bandana/medical
bandanas["bandana, engineering"] = /obj/item/clothing/head/bandana/engineering
bandanas["bandana, atmospherics"] = /obj/item/clothing/head/bandana/atmos
bandanas["bandana, hydroponics"] = /obj/item/clothing/head/bandana/hydro
bandanas["bandana, cargo"] = /obj/item/clothing/head/bandana/cargo
bandanas["bandana, mining"] = /obj/item/clothing/head/bandana/miner
bandanas["bandana, janitor"] = /obj/item/clothing/head/bandana/janitor
gear_tweaks += new /datum/gear_tweak/path(bandanas)
/datum/gear/head/bandana_color
display_name = "bandana (colorable)"
path = /obj/item/clothing/head/bandana/colorable
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/softcap
display_name = "softcap selection"
description = "A selection of softcaps. Comes in departmental colors."
path = /obj/item/clothing/head/softcap
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/softcap/New()
..()
var/list/softcaps = list()
softcaps["softcap"] = /obj/item/clothing/head/softcap
softcaps["softcap, rainbow"] = /obj/item/clothing/head/softcap/rainbow
softcaps["softcap, red"] = /obj/item/clothing/head/softcap/red
softcaps["softcap, captain"] = /obj/item/clothing/head/softcap/captain
softcaps["softcap, security"] = /obj/item/clothing/head/softcap/security
softcaps["softcap, science"] = /obj/item/clothing/head/softcap/science
softcaps["softcap, medical"] = /obj/item/clothing/head/softcap/medical
softcaps["softcap, engineering"] = /obj/item/clothing/head/softcap/engineering
softcaps["softcap, atmospherics"] = /obj/item/clothing/head/softcap/atmos
softcaps["softcap, hydroponics"] = /obj/item/clothing/head/softcap/hydro
softcaps["softcap, cargo"] = /obj/item/clothing/head/softcap/cargo
softcaps["softcap, mining"] = /obj/item/clothing/head/softcap/miner
softcaps["softcap, janitor"] = /obj/item/clothing/head/softcap/janitor
softcaps["softcap, tcfl"] = /obj/item/clothing/head/softcap/tcfl
gear_tweaks += new /datum/gear_tweak/path(softcaps)
/datum/gear/head/softcap_color
display_name = "softcap (colorable)"
path = /obj/item/clothing/head/softcap/colorable
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/beret
display_name = "beret selection"
description = "A selection of berets. Comes in departmental colors."
path = /obj/item/clothing/head/beret
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/beret/New()
..()
var/list/berets = list()
berets["beret"] = /obj/item/clothing/head/beret
berets["beret, red"] = /obj/item/clothing/head/beret/red
berets["beret, captain"] = /obj/item/clothing/head/beret/captain
berets["beret, security"] = /obj/item/clothing/head/beret/security
berets["beret, science"] = /obj/item/clothing/head/beret/science
berets["beret, medical"] = /obj/item/clothing/head/beret/medical
berets["beret, engineering"] = /obj/item/clothing/head/beret/engineering
berets["beret, atmospherics"] = /obj/item/clothing/head/beret/atmos
berets["beret, hydroponics"] = /obj/item/clothing/head/beret/hydro
berets["beret, cargo"] = /obj/item/clothing/head/beret/cargo
berets["beret, mining"] = /obj/item/clothing/head/beret/miner
berets["beret, janitor"] = /obj/item/clothing/head/beret/janitor
gear_tweaks += new /datum/gear_tweak/path(berets)
/datum/gear/head/beret_color
display_name = "beret (colorable)"
path = /obj/item/clothing/head/beret/colorable
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/warden
display_name = "headwear, security (warden)"
description = "A selection of warden headwear."
path = /obj/item/clothing/head
allowed_roles = list("Head of Security" , "Warden")
/datum/gear/head/warden/New()
..()
var/list/wardenhead = list()
wardenhead["warden hat, zavod"] = /obj/item/clothing/head/warden
wardenhead["warden hat, idris"] = /obj/item/clothing/head/warden/idris
wardenhead["warden hat, pmc"] = /obj/item/clothing/head/warden/pmc
wardenhead["warden beret"] = /obj/item/clothing/head/beret/security/warden
gear_tweaks += new /datum/gear_tweak/path(wardenhead)
/datum/gear/head/hos
display_name = "headwear, security (head of security)"
description = "A selection of head of security headwear."
path = /obj/item/clothing/head
allowed_roles = list("Head of Security")
/datum/gear/head/hos/New()
..()
var/list/hoshead = list()
hoshead["head of security hat"] = /obj/item/clothing/head/hos
hoshead["head of security beret"] = /obj/item/clothing/head/beret/security/hos
gear_tweaks += new /datum/gear_tweak/path(hoshead)
/datum/gear/head/hardhat
display_name = "hard hat selection"
path = /obj/item/clothing/head/hardhat
allowed_roles = list("Engineer", "Atmospheric Technician", "Chief Engineer", "Engineering Apprentice", "Operations Manager", "Hangar Technician", "Shaft Miner")
/datum/gear/head/hardhat/New()
..()
var/list/hardhat = list()
hardhat["hard hat, yellow"] = /obj/item/clothing/head/hardhat
hardhat["hard hat, blue"] = /obj/item/clothing/head/hardhat/dblue
hardhat["hard hat, orange"] = /obj/item/clothing/head/hardhat/orange
hardhat["hard hat, red"] = /obj/item/clothing/head/hardhat/red
gear_tweaks += new /datum/gear_tweak/path(hardhat)
/datum/gear/head/hairflower
display_name = "hair flower pin (colorable)"
path = /obj/item/clothing/head/pin/flower/white
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/flowercrown
display_name = "flowercrown selection"
description = "A set of flowercrowns, perfect for the queen or even the king."
path = /obj/item/clothing/head
/datum/gear/head/flowercrown/New()
..()
var/list/flowercrown = list()
flowercrown["crown, sunflower"] = /obj/item/clothing/head/sunflower_crown
flowercrown["crown, harebell"] = /obj/item/clothing/head/lavender_crown
flowercrown["crown, poppy"] = /obj/item/clothing/head/poppy_crown
gear_tweaks += new /datum/gear_tweak/path(flowercrown)
/datum/gear/head/pin
display_name = "pin selection"
path = /obj/item/clothing/head/pin
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/pin/New()
..()
var/list/pins = list()
for(var/pin in typesof(/obj/item/clothing/head/pin))
var/obj/item/clothing/head/pin/pin_type = pin
pins[initial(pin_type.name)] = pin_type
gear_tweaks += new /datum/gear_tweak/path(sortAssoc(pins))
/datum/gear/head/hats
display_name = "hat selection"
description = "A selection of hats."
path = /obj/item/clothing/head/boaterhat
/datum/gear/head/hats/New()
..()
var/list/hats = list()
hats["hat, boatsman"] = /obj/item/clothing/head/boaterhat
hats["hat, bowler"] = /obj/item/clothing/head/bowler
hats["hat, fez"] = /obj/item/clothing/head/fez
hats["hat, tophat"] = /obj/item/clothing/head/that
hats["hat, feather trilby"] = /obj/item/clothing/head/feathertrilby
hats["hat, striped black fedora"] = /obj/item/clothing/head/fedora
hats["hat, black fedora"] = /obj/item/clothing/head/fedora/black
hats["hat, brown fedora"] = /obj/item/clothing/head/fedora/brown
hats["hat, dark brown fedora"] = /obj/item/clothing/head/fedora/brown/dark
hats["hat, grey fedora"] = /obj/item/clothing/head/fedora/grey
hats["hat, beaver"] = /obj/item/clothing/head/beaverhat
hats["hat, cowboy"] = /obj/item/clothing/head/cowboy
hats["hat, wide-brimmed cowboy"] = /obj/item/clothing/head/cowboy/wide
hats["hat, sombrero"] = /obj/item/clothing/head/sombrero
hats["hat, flatcap"] = /obj/item/clothing/head/flatcap
gear_tweaks += new /datum/gear_tweak/path(hats)
/datum/gear/head/hijab
display_name = "hijab selection"
path = /obj/item/clothing/head/hijab
/datum/gear/head/hijab/New()
..()
var/list/hijab = list()
hijab["black hijab"] = /obj/item/clothing/head/hijab
hijab["grey hijab"] = /obj/item/clothing/head/hijab/grey
hijab["red hijab"] = /obj/item/clothing/head/hijab/red
hijab["brown hijab"] = /obj/item/clothing/head/hijab/brown
hijab["green hijab"] = /obj/item/clothing/head/hijab/green
hijab["blue hijab"] = /obj/item/clothing/head/hijab/blue
hijab["white hijab"] = /obj/item/clothing/head/hijab/white
gear_tweaks += new /datum/gear_tweak/path(hijab)
/datum/gear/head/hijab_colorable
display_name = "colorable hijab"
path = /obj/item/clothing/head/hijab/white
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/turban
display_name = "turban selection"
path = /obj/item/clothing/head/turban
/datum/gear/head/turban/New()
..()
var/list/turbans = list()
turbans["black turban"] = /obj/item/clothing/head/turban
turbans["blue turban"] = /obj/item/clothing/head/turban/blue
turbans["green turban"] = /obj/item/clothing/head/turban/green
turbans["grey turban"] = /obj/item/clothing/head/turban/grey
turbans["orange turban"] = /obj/item/clothing/head/turban/orange
turbans["purple turban"] = /obj/item/clothing/head/turban/purple
turbans["red turban"] = /obj/item/clothing/head/turban/red
turbans["white turban"] = /obj/item/clothing/head/turban/white
turbans["yellow turban"] = /obj/item/clothing/head/turban/yellow
gear_tweaks += new /datum/gear_tweak/path(turbans)
/datum/gear/head/surgical
display_name = "surgical cap selection"
path = /obj/item/clothing/head/surgery/pmc
allowed_roles = list("Scientist", "Chief Medical Officer", "Physician", "Surgeon", "Pharmacist", "First Responder", "Medical Intern", "Xenobiologist", "Research Director", "Investigator")
/datum/gear/head/surgical/New()
..()
var/list/surgical = list()
surgical["surgical cap, nanotrasen navy blue"] = /obj/item/clothing/head/surgery
surgical["surgical cap, zeng-hu purple"] = /obj/item/clothing/head/surgery/zeng
surgical["surgical cap, PMCG blue"] = /obj/item/clothing/head/surgery/pmc
surgical["surgical cap, zavodskoi black"] = /obj/item/clothing/head/surgery/zavod
surgical["surgical cap, idris green"] = /obj/item/clothing/head/surgery/idris
gear_tweaks += new /datum/gear_tweak/path(surgical)
/datum/gear/head/headbando
display_name = "basic headband"
path = /obj/item/clothing/head/headbando
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/beanie
display_name = "beanie"
path = /obj/item/clothing/head/beanie
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/nonla
display_name = "non la hat"
path = /obj/item/clothing/head/nonla
/datum/gear/head/konyang
display_name = "gat"
path = /obj/item/clothing/head/konyang
/datum/gear/head/iac
display_name = "IAC headgear selection"
description = "A selection of hats worn by Interstellar Aid Corps volunteers."
path = /obj/item/clothing/head/softcap/iac
allowed_roles = list("Chief Medical Officer", "Physician", "Surgeon", "Pharmacist", "First Responder", "Medical Intern")
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/iac/New()
..()
var/list/iac = list()
iac["IAC cap"] = /obj/item/clothing/head/softcap/iac
iac["IAC beret"] = /obj/item/clothing/head/beret/iac
gear_tweaks += new /datum/gear_tweak/path(iac)
/datum/gear/head/circuitry
display_name = "headwear, circuitry (empty)"
path = /obj/item/clothing/head/circuitry
/datum/gear/head/tcfl
display_name = "tcfl hat selection"
path = /obj/item/clothing/head/beret/legion
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/tcfl/New()
..()
var/list/tcfl = list()
tcfl["tcfl beret, dress"] = /obj/item/clothing/head/beret/legion
tcfl["tcfl beret, field"] = /obj/item/clothing/head/beret/legion/field
gear_tweaks += new /datum/gear_tweak/path(tcfl)
/datum/gear/head/padded_cap
display_name = "padded cap"
path = /obj/item/clothing/head/padded
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/himeo
display_name = "himean cap"
path = /obj/item/clothing/head/softcap/himeo
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/vysoka
display_name = "vysokan fur cap"
path = /obj/item/clothing/head/softcap/vysoka
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/buckethat
display_name = "bucket hat"
path = /obj/item/clothing/head/buckethat
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/datum/gear/head/gadpathur
display_name = "gadpathurian headgear selection"
description = "A selection of headgear from Gadpathur."
path = /obj/item/clothing/head/gadpathur
flags = GEAR_HAS_DESC_SELECTION
origin_restriction = list(/decl/origin_item/origin/gadpathur)
/datum/gear/head/gadpathur/New()
..()
var/list/gadpathur = list()
gadpathur["gadpathurian sidecap"] = /obj/item/clothing/head/gadpathur
gadpathur["gadpathurian beret"] = /obj/item/clothing/head/beret/gadpathur
gadpathur["gadpathurian engineer beret"] = /obj/item/clothing/head/beret/gadpathur/engineer
gadpathur["gadpathurian medical beret"] = /obj/item/clothing/head/beret/gadpathur/medical
gadpathur["gadpathurian turban"] = /obj/item/clothing/head/turban/gadpathur
gear_tweaks += new /datum/gear_tweak/path(gadpathur)
/datum/gear/head/dominia
display_name = "fisanduhian ushanka"
path = /obj/item/clothing/head/ushanka/dominia
flags = GEAR_HAS_DESC_SELECTION
/datum/gear/head/dominia_consular
display_name = "dominian consular cap"
path = /obj/item/clothing/head/dominia
allowed_roles = list("Consular Officer")
/datum/gear/head/hairnet
display_name = "hairnet"
path = /obj/item/clothing/head/surgery/hairnet
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
/*
Block Hair Adjustment
*/
var/datum/gear_tweak/hair_block/gear_tweak_hair_block = new()
/datum/gear_tweak/hair_block/get_contents(var/metadata)
return "Blocks Hair: [metadata]"
/datum/gear_tweak/hair_block/get_default()
return "Default"
/datum/gear_tweak/hair_block/get_metadata(var/user, var/metadata)
return input(user, "Choose whether you want your headgear to block hair, or use the headgear's default.", "Hair Blocking", metadata) as anything in list("Yes", "No", "Default")
/datum/gear_tweak/hair_block/tweak_item(var/obj/item/clothing/head/H, var/metadata)
if(!istype(H))
return
if(!H.allow_hair_covering)
return
switch(metadata)
if("Yes")
H.flags_inv |= BLOCKHEADHAIR
if("No")
H.flags_inv &= ~BLOCKHEADHAIR