diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index bf5eedb2075..bdf0c15b813 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -260,6 +260,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts switch(current_tab) if(TAB_CHAR) // Character Settings + var/datum/species/S = all_species[species] dat += "
| "
dat += "Name: "
@@ -290,10 +291,10 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
if(species == "Grey")
dat += "Voice: [speciesprefs ? "Wingdings" : "Normal"] " dat += "Secondary Language: [language] " - if(species in list("Unathi", "Tajaran", "Plasmaman", "Kidan")) + if(istype(S) && S.autohiss_basic_map) dat += "Auto-accent: [autohiss_mode == 2 ? "Full" : (autohiss_mode == 1 ? "Basic" : "Off")] " dat += "Blood Type: [b_type] " - if(species in list("Human", "Drask", "Vox")) + if(istype(S) && S.bodyflags & (HAS_SKIN_TONE|HAS_ICON_SKIN_TONE)) dat += "Skin Tone: [species == "Vox" ? "[s_tone]" : "[-s_tone + 35]/220"] " dat += "Disabilities: \[Set\] " dat += "Nanotrasen Relation: [nanotrasen_relation] " @@ -305,7 +306,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts dat += " Hair & Accessories" - if(species in list("Unathi", "Vulpkanin", "Tajaran", "Machine", "Kidan")) //Species that have head accessories. + if(istype(S) && S.bodyflags & HAS_HEAD_ACCESSORY) //Species that have head accessories. var/headaccessoryname = "Head Accessory: " if(species == "Unathi") headaccessoryname = "Horns: " @@ -313,15 +314,15 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts dat += "[ha_style] " dat += "Color [color_square(r_headacc, g_headacc, b_headacc)]" - if(species in list("Machine", "Tajaran", "Unathi", "Vulpkanin")) //Species with head markings. + if(istype(S) && S.bodyflags & HAS_HEAD_MARKINGS) //Species with head markings. dat += "Head Markings: " dat += "[m_styles["head"]]" dat += "Color [color_square(color2R(m_colours["head"]), color2G(m_colours["head"]), color2B(m_colours["head"]))] " - if(species in list("Human", "Unathi", "Grey", "Vulpkanin", "Tajaran", "Skrell", "Vox", "Drask")) //Species with body markings/tattoos. + if(istype(S) && S.bodyflags & HAS_BODY_MARKINGS) //Species with body markings/tattoos. dat += "Body Markings: " dat += "[m_styles["body"]]" dat += "Color [color_square(color2R(m_colours["body"]), color2G(m_colours["body"]), color2B(m_colours["body"]))] " - if(species in list("Vox", "Vulpkanin")) //Species with tail markings. + if(istype(S) && S.bodyflags & HAS_TAIL_MARKINGS) //Species with tail markings. dat += "Tail Markings: " dat += "[m_styles["tail"]]" dat += "Color [color_square(color2R(m_colours["tail"]), color2G(m_colours["tail"]), color2B(m_colours["tail"]))] " @@ -347,7 +348,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts dat += "Eyes: " dat += "Color [color_square(r_eyes, g_eyes, b_eyes)] " - if((species in list("Unathi", "Tajaran", "Skrell", "Slime People", "Vulpkanin", "Machine")) || body_accessory_by_species[species] || check_rights(R_ADMIN, 0, user)) //admins can always fuck with this, because they are admins + if((istype(S) && S.bodyflags & HAS_SKIN_COLOR) || body_accessory_by_species[species] || check_rights(R_ADMIN, 0, user)) //admins can always fuck with this, because they are admins dat += "Body Color: " dat += "Color [color_square(r_skin, g_skin, b_skin)] " @@ -364,7 +365,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts dat += "Character Records " dat += " Limbs" - if(species in list("Unathi")) //Species with alt heads. + if(istype(S) && S.bodyflags & HAS_ALT_HEADS) //Species with alt heads. dat += "Alternate Head: " dat += "[alt_head]" dat += "Limbs and Parts: Adjust " @@ -415,9 +416,12 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts else dat += " " dat += " Clothing" - dat += "Underwear: [underwear]" - dat += "Undershirt: [undershirt] " - dat += "Socks: [socks] " + if(istype(S) && S.clothing_flags & HAS_UNDERWEAR) + dat += "Underwear: [underwear] " + if(istype(S) && S.clothing_flags & HAS_UNDERSHIRT) + dat += "Undershirt: [undershirt] " + if(istype(S) && S.clothing_flags & HAS_SOCKS) + dat += "Socks: [socks] " dat += "Backpack Type: [backbag] " dat += " |