diff --git a/code/__DEFINES/DNA.dm b/code/__DEFINES/DNA.dm index 9264099dc8f..e35dd194149 100644 --- a/code/__DEFINES/DNA.dm +++ b/code/__DEFINES/DNA.dm @@ -78,8 +78,8 @@ #define DNA_SKIN_TONE_BLOCK 3 #define DNA_EYE_COLOR_BLOCK 4 #define DNA_GENDER_BLOCK 5 -#define DNA_FACIAL_HAIR_STYLE_BLOCK 6 -#define DNA_HAIR_STYLE_BLOCK 7 +#define DNA_FACIAL_HAIRSTYLE_BLOCK 6 +#define DNA_HAIRSTYLE_BLOCK 7 #define DNA_SEQUENCE_LENGTH 4 #define DNA_MUTATION_BLOCKS 8 diff --git a/code/__DEFINES/preferences.dm b/code/__DEFINES/preferences.dm index 5379c291296..1d6d64efb2a 100644 --- a/code/__DEFINES/preferences.dm +++ b/code/__DEFINES/preferences.dm @@ -81,4 +81,23 @@ //Job preferences levels #define JP_LOW 1 #define JP_MEDIUM 2 -#define JP_HIGH 3 \ No newline at end of file +#define JP_HIGH 3 + +//randomised elements +#define RANDOM_NAME "random_name" +#define RANDOM_BODY "random_body" +#define RANDOM_SPECIES "random_species" +#define RANDOM_GENDER "random_gender" +#define RANDOM_AGE "random_age" +#define RANDOM_UNDERWEAR "random_underwear" +#define RANDOM_UNDERWEAR_COLOR "random_underwear_color" +#define RANDOM_UNDERSHIRT "random_undershirt" +#define RANDOM_SOCKS "random_socks" +#define RANDOM_BACKPACK "random_backpack" +#define RANDOM_JUMPSUIT_STYLE "random_jumpsuit_style" +#define RANDOM_HAIRSTYLE "random_hairstyle" +#define RANDOM_HAIR_COLOR "random_hair_color" +#define RANDOM_FACIAL_HAIR_COLOR "random_facial_hair_color" +#define RANDOM_FACIAL_HAIRSTYLE "random_facial_hairstyle" +#define RANDOM_SKIN_TONE "random_skin_tone" +#define RANDOM_EYE_COLOR "random_eye_color" \ No newline at end of file diff --git a/code/__HELPERS/global_lists.dm b/code/__HELPERS/global_lists.dm index 5c0a8e5587c..06c590a78c2 100644 --- a/code/__HELPERS/global_lists.dm +++ b/code/__HELPERS/global_lists.dm @@ -4,9 +4,9 @@ /proc/make_datum_references_lists() //hair - init_sprite_accessory_subtypes(/datum/sprite_accessory/hair, GLOB.hair_styles_list, GLOB.hair_styles_male_list, GLOB.hair_styles_female_list) + init_sprite_accessory_subtypes(/datum/sprite_accessory/hair, GLOB.hairstyles_list, GLOB.hairstyles_male_list, GLOB.hairstyles_female_list) //facial hair - init_sprite_accessory_subtypes(/datum/sprite_accessory/facial_hair, GLOB.facial_hair_styles_list, GLOB.facial_hair_styles_male_list, GLOB.facial_hair_styles_female_list) + init_sprite_accessory_subtypes(/datum/sprite_accessory/facial_hair, GLOB.facial_hairstyles_list, GLOB.facial_hairstyles_male_list, GLOB.facial_hairstyles_female_list) //underwear init_sprite_accessory_subtypes(/datum/sprite_accessory/underwear, GLOB.underwear_list, GLOB.underwear_m, GLOB.underwear_f) //undershirt diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index d549c2840fd..f0bfdb62ca0 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -47,6 +47,9 @@ init_sprite_accessory_subtypes(/datum/sprite_accessory/socks, GLOB.socks_list) return pick(GLOB.socks_list) +/proc/random_backpack() + return pick(GLOB.backpacklist) + /proc/random_features() if(!GLOB.tails_list_human.len) init_sprite_accessory_subtypes(/datum/sprite_accessory/tails/human, GLOB.tails_list_human) @@ -75,23 +78,23 @@ //For now we will always return none for tail_human and ears. return(list("mcolor" = pick("FFFFFF","7F7F7F", "7FFF7F", "7F7FFF", "FF7F7F", "7FFFFF", "FF7FFF", "FFFF7F"),"ethcolor" = GLOB.color_list_ethereal[pick(GLOB.color_list_ethereal)], "tail_lizard" = pick(GLOB.tails_list_lizard), "tail_human" = "None", "wings" = "None", "snout" = pick(GLOB.snouts_list), "horns" = pick(GLOB.horns_list), "ears" = "None", "frills" = pick(GLOB.frills_list), "spines" = pick(GLOB.spines_list), "body_markings" = pick(GLOB.body_markings_list), "legs" = "Normal Legs", "caps" = pick(GLOB.caps_list), "moth_wings" = pick(GLOB.moth_wings_list), "moth_markings" = pick(GLOB.moth_markings_list))) -/proc/random_hair_style(gender) +/proc/random_hairstyle(gender) switch(gender) if(MALE) - return pick(GLOB.hair_styles_male_list) + return pick(GLOB.hairstyles_male_list) if(FEMALE) - return pick(GLOB.hair_styles_female_list) + return pick(GLOB.hairstyles_female_list) else - return pick(GLOB.hair_styles_list) + return pick(GLOB.hairstyles_list) -/proc/random_facial_hair_style(gender) +/proc/random_facial_hairstyle(gender) switch(gender) if(MALE) - return pick(GLOB.facial_hair_styles_male_list) + return pick(GLOB.facial_hairstyles_male_list) if(FEMALE) - return pick(GLOB.facial_hair_styles_female_list) + return pick(GLOB.facial_hairstyles_female_list) else - return pick(GLOB.facial_hair_styles_list) + return pick(GLOB.facial_hairstyles_list) /proc/random_unique_name(gender, attempts_to_find_unique_name=10) for(var/i in 1 to attempts_to_find_unique_name) diff --git a/code/_globalvars/lists/flavor_misc.dm b/code/_globalvars/lists/flavor_misc.dm index 108b7fb0854..b17be9f17b0 100644 --- a/code/_globalvars/lists/flavor_misc.dm +++ b/code/_globalvars/lists/flavor_misc.dm @@ -1,11 +1,11 @@ //Preferences stuff //Hairstyles -GLOBAL_LIST_EMPTY(hair_styles_list) //stores /datum/sprite_accessory/hair indexed by name -GLOBAL_LIST_EMPTY(hair_styles_male_list) //stores only hair names -GLOBAL_LIST_EMPTY(hair_styles_female_list) //stores only hair names -GLOBAL_LIST_EMPTY(facial_hair_styles_list) //stores /datum/sprite_accessory/facial_hair indexed by name -GLOBAL_LIST_EMPTY(facial_hair_styles_male_list) //stores only hair names -GLOBAL_LIST_EMPTY(facial_hair_styles_female_list) //stores only hair names +GLOBAL_LIST_EMPTY(hairstyles_list) //stores /datum/sprite_accessory/hair indexed by name +GLOBAL_LIST_EMPTY(hairstyles_male_list) //stores only hair names +GLOBAL_LIST_EMPTY(hairstyles_female_list) //stores only hair names +GLOBAL_LIST_EMPTY(facial_hairstyles_list) //stores /datum/sprite_accessory/facial_hair indexed by name +GLOBAL_LIST_EMPTY(facial_hairstyles_male_list) //stores only hair names +GLOBAL_LIST_EMPTY(facial_hairstyles_female_list) //stores only hair names //Underwear GLOBAL_LIST_EMPTY(underwear_list) //stores /datum/sprite_accessory/underwear indexed by name GLOBAL_LIST_EMPTY(underwear_m) //stores only underwear name @@ -100,7 +100,7 @@ GLOBAL_LIST_INIT(security_depts_prefs, list(SEC_DEPT_RANDOM, SEC_DEPT_NONE, SEC_ #define DBACKPACK "Department Backpack" #define DSATCHEL "Department Satchel" #define DDUFFELBAG "Department Duffel Bag" -GLOBAL_LIST_INIT(backbaglist, list(DBACKPACK, DSATCHEL, DDUFFELBAG, GBACKPACK, GSATCHEL, GDUFFELBAG, LSATCHEL)) +GLOBAL_LIST_INIT(backpacklist, list(DBACKPACK, DSATCHEL, DDUFFELBAG, GBACKPACK, GSATCHEL, GDUFFELBAG, LSATCHEL)) //Suit/Skirt #define PREF_SUIT "Jumpsuit" diff --git a/code/datums/diseases/advance/symptoms/beard.dm b/code/datums/diseases/advance/symptoms/beard.dm index e83132f082c..8ac5d655bd4 100644 --- a/code/datums/diseases/advance/symptoms/beard.dm +++ b/code/datums/diseases/advance/symptoms/beard.dm @@ -35,9 +35,9 @@ BONUS var/mob/living/M = A.affected_mob if(ishuman(M)) var/mob/living/carbon/human/H = M - var/index = min(max(beard_order.Find(H.facial_hair_style)+1, A.stage-1), beard_order.len) - if(index > 0 && H.facial_hair_style != beard_order[index]) + var/index = min(max(beard_order.Find(H.facial_hairstyle)+1, A.stage-1), beard_order.len) + if(index > 0 && H.facial_hairstyle != beard_order[index]) to_chat(H, "Your chin itches.") - H.facial_hair_style = beard_order[index] + H.facial_hairstyle = beard_order[index] H.update_hair() diff --git a/code/datums/diseases/advance/symptoms/shedding.dm b/code/datums/diseases/advance/symptoms/shedding.dm index 06df320496d..521264e565a 100644 --- a/code/datums/diseases/advance/symptoms/shedding.dm +++ b/code/datums/diseases/advance/symptoms/shedding.dm @@ -38,18 +38,18 @@ BONUS var/mob/living/carbon/human/H = M switch(A.stage) if(3, 4) - if(!(H.hair_style == "Bald") && !(H.hair_style == "Balding Hair")) + if(!(H.hairstyle == "Bald") && !(H.hairstyle == "Balding Hair")) to_chat(H, "Your hair starts to fall out in clumps...") addtimer(CALLBACK(src, .proc/Shed, H, FALSE), 50) if(5) - if(!(H.facial_hair_style == "Shaved") || !(H.hair_style == "Bald")) + if(!(H.facial_hairstyle == "Shaved") || !(H.hairstyle == "Bald")) to_chat(H, "Your hair starts to fall out in clumps...") addtimer(CALLBACK(src, .proc/Shed, H, TRUE), 50) /datum/symptom/shedding/proc/Shed(mob/living/carbon/human/H, fullbald) if(fullbald) - H.facial_hair_style = "Shaved" - H.hair_style = "Bald" + H.facial_hairstyle = "Shaved" + H.hairstyle = "Bald" else - H.hair_style = "Balding Hair" + H.hairstyle = "Balding Hair" H.update_hair() diff --git a/code/datums/dna.dm b/code/datums/dna.dm index 11607b8dddc..21dc44bbd64 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -99,13 +99,13 @@ L[DNA_GENDER_BLOCK] = construct_block(G_PLURAL, 3) if(ishuman(holder)) var/mob/living/carbon/human/H = holder - if(!GLOB.hair_styles_list.len) - init_sprite_accessory_subtypes(/datum/sprite_accessory/hair,GLOB.hair_styles_list, GLOB.hair_styles_male_list, GLOB.hair_styles_female_list) - L[DNA_HAIR_STYLE_BLOCK] = construct_block(GLOB.hair_styles_list.Find(H.hair_style), GLOB.hair_styles_list.len) + if(!GLOB.hairstyles_list.len) + init_sprite_accessory_subtypes(/datum/sprite_accessory/hair,GLOB.hairstyles_list, GLOB.hairstyles_male_list, GLOB.hairstyles_female_list) + L[DNA_HAIRSTYLE_BLOCK] = construct_block(GLOB.hairstyles_list.Find(H.hairstyle), GLOB.hairstyles_list.len) L[DNA_HAIR_COLOR_BLOCK] = sanitize_hexcolor(H.hair_color) - if(!GLOB.facial_hair_styles_list.len) - init_sprite_accessory_subtypes(/datum/sprite_accessory/facial_hair, GLOB.facial_hair_styles_list, GLOB.facial_hair_styles_male_list, GLOB.facial_hair_styles_female_list) - L[DNA_FACIAL_HAIR_STYLE_BLOCK] = construct_block(GLOB.facial_hair_styles_list.Find(H.facial_hair_style), GLOB.facial_hair_styles_list.len) + if(!GLOB.facial_hairstyles_list.len) + init_sprite_accessory_subtypes(/datum/sprite_accessory/facial_hair, GLOB.facial_hairstyles_list, GLOB.facial_hairstyles_male_list, GLOB.facial_hairstyles_female_list) + L[DNA_FACIAL_HAIRSTYLE_BLOCK] = construct_block(GLOB.facial_hairstyles_list.Find(H.facial_hairstyle), GLOB.facial_hairstyles_list.len) L[DNA_FACIAL_HAIR_COLOR_BLOCK] = sanitize_hexcolor(H.facial_hair_color) L[DNA_SKIN_TONE_BLOCK] = construct_block(GLOB.skin_tones.Find(H.skin_tone), GLOB.skin_tones.len) L[DNA_EYE_COLOR_BLOCK] = sanitize_hexcolor(H.eye_color) @@ -191,10 +191,10 @@ setblock(uni_identity, blocknumber, construct_block(G_FEMALE, 3)) else setblock(uni_identity, blocknumber, construct_block(G_PLURAL, 3)) - if(DNA_FACIAL_HAIR_STYLE_BLOCK) - setblock(uni_identity, blocknumber, construct_block(GLOB.facial_hair_styles_list.Find(H.facial_hair_style), GLOB.facial_hair_styles_list.len)) - if(DNA_HAIR_STYLE_BLOCK) - setblock(uni_identity, blocknumber, construct_block(GLOB.hair_styles_list.Find(H.hair_style), GLOB.hair_styles_list.len)) + if(DNA_FACIAL_HAIRSTYLE_BLOCK) + setblock(uni_identity, blocknumber, construct_block(GLOB.facial_hairstyles_list.Find(H.facial_hairstyle), GLOB.facial_hairstyles_list.len)) + if(DNA_HAIRSTYLE_BLOCK) + setblock(uni_identity, blocknumber, construct_block(GLOB.hairstyles_list.Find(H.hairstyle), GLOB.hairstyles_list.len)) //Please use add_mutation or activate_mutation instead /datum/dna/proc/force_give(datum/mutation/human/HM) @@ -385,8 +385,8 @@ facial_hair_color = sanitize_hexcolor(getblock(structure, DNA_FACIAL_HAIR_COLOR_BLOCK)) skin_tone = GLOB.skin_tones[deconstruct_block(getblock(structure, DNA_SKIN_TONE_BLOCK), GLOB.skin_tones.len)] eye_color = sanitize_hexcolor(getblock(structure, DNA_EYE_COLOR_BLOCK)) - facial_hair_style = GLOB.facial_hair_styles_list[deconstruct_block(getblock(structure, DNA_FACIAL_HAIR_STYLE_BLOCK), GLOB.facial_hair_styles_list.len)] - hair_style = GLOB.hair_styles_list[deconstruct_block(getblock(structure, DNA_HAIR_STYLE_BLOCK), GLOB.hair_styles_list.len)] + facial_hairstyle = GLOB.facial_hairstyles_list[deconstruct_block(getblock(structure, DNA_FACIAL_HAIRSTYLE_BLOCK), GLOB.facial_hairstyles_list.len)] + hairstyle = GLOB.hairstyles_list[deconstruct_block(getblock(structure, DNA_HAIRSTYLE_BLOCK), GLOB.hairstyles_list.len)] if(icon_update) update_body() update_hair() diff --git a/code/game/objects/items/cosmetics.dm b/code/game/objects/items/cosmetics.dm index 2ca65be52f0..98a08fedfe7 100644 --- a/code/game/objects/items/cosmetics.dm +++ b/code/game/objects/items/cosmetics.dm @@ -115,9 +115,9 @@ /obj/item/razor/proc/shave(mob/living/carbon/human/H, location = BODY_ZONE_PRECISE_MOUTH) if(location == BODY_ZONE_PRECISE_MOUTH) - H.facial_hair_style = "Shaved" + H.facial_hairstyle = "Shaved" else - H.hair_style = "Skinhead" + H.hairstyle = "Skinhead" H.update_hair() playsound(loc, 'sound/items/welder2.ogg', 20, TRUE) @@ -138,14 +138,14 @@ return if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return - var/new_style = input(user, "Select a facial hair style", "Grooming") as null|anything in GLOB.facial_hair_styles_list + var/new_style = input(user, "Select a facial hairstyle", "Grooming") as null|anything in GLOB.facial_hairstyles_list if(!get_location_accessible(H, location)) to_chat(user, "The mask is in the way!") return - user.visible_message("[user] tries to change [H]'s facial hair style using [src].", "You try to change [H]'s facial hair style using [src].") + user.visible_message("[user] tries to change [H]'s facial hairstyle using [src].", "You try to change [H]'s facial hairstyle using [src].") if(new_style && do_after(user, 60, target = H)) - user.visible_message("[user] successfully changes [H]'s facial hair style using [src].", "You successfully change [H]'s facial hair style using [src].") - H.facial_hair_style = new_style + user.visible_message("[user] successfully changes [H]'s facial hairstyle using [src].", "You successfully change [H]'s facial hairstyle using [src].") + H.facial_hairstyle = new_style H.update_hair() return else @@ -158,7 +158,7 @@ if(!get_location_accessible(H, location)) to_chat(user, "The mask is in the way!") return - if(H.facial_hair_style == "Shaved") + if(H.facial_hairstyle == "Shaved") to_chat(user, "Already clean-shaven!") return @@ -184,14 +184,14 @@ return if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return - var/new_style = input(user, "Select a hair style", "Grooming") as null|anything in GLOB.hair_styles_list + var/new_style = input(user, "Select a hairstyle", "Grooming") as null|anything in GLOB.hairstyles_list if(!get_location_accessible(H, location)) to_chat(user, "The headgear is in the way!") return user.visible_message("[user] tries to change [H]'s hairstyle using [src].", "You try to change [H]'s hairstyle using [src].") if(new_style && do_after(user, 60, target = H)) user.visible_message("[user] successfully changes [H]'s hairstyle using [src].", "You successfully change [H]'s hairstyle using [src].") - H.hair_style = new_style + H.hairstyle = new_style H.update_hair() return @@ -202,7 +202,7 @@ if(!get_location_accessible(H, location)) to_chat(user, "The headgear is in the way!") return - if(H.hair_style == "Bald" || H.hair_style == "Balding Hair" || H.hair_style == "Skinhead") + if(H.hairstyle == "Bald" || H.hairstyle == "Balding Hair" || H.hairstyle == "Skinhead") to_chat(user, "There is not enough hair left to shave!") return diff --git a/code/game/objects/structures/mirror.dm b/code/game/objects/structures/mirror.dm index 45f64500fd6..785cbbad57b 100644 --- a/code/game/objects/structures/mirror.dm +++ b/code/game/objects/structures/mirror.dm @@ -29,20 +29,20 @@ //handle facial hair (if necessary) if(H.gender != FEMALE) - var/new_style = input(user, "Select a facial hair style", "Grooming") as null|anything in GLOB.facial_hair_styles_list + var/new_style = input(user, "Select a facial hairstyle", "Grooming") as null|anything in GLOB.facial_hairstyles_list if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return //no tele-grooming if(new_style) - H.facial_hair_style = new_style + H.facial_hairstyle = new_style else - H.facial_hair_style = "Shaved" + H.facial_hairstyle = "Shaved" //handle normal hair - var/new_style = input(user, "Select a hair style", "Grooming") as null|anything in GLOB.hair_styles_list + var/new_style = input(user, "Select a hairstyle", "Grooming") as null|anything in GLOB.hairstyles_list if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return //no tele-grooming if(new_style) - H.hair_style = new_style + H.hairstyle = new_style H.update_hair() @@ -211,7 +211,7 @@ H.update_mutations_overlay() //(hulk male/female) if("hair") - var/hairchoice = alert(H, "Hair style or hair color?", "Change Hair", "Style", "Color") + var/hairchoice = alert(H, "Hairstyle or hair color?", "Change Hair", "Style", "Color") if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return if(hairchoice == "Style") //So you just want to use a mirror then? diff --git a/code/modules/admin/create_mob.dm b/code/modules/admin/create_mob.dm index 61eefeb7721..31efc2717d6 100644 --- a/code/modules/admin/create_mob.dm +++ b/code/modules/admin/create_mob.dm @@ -17,8 +17,8 @@ H.underwear = random_underwear(H.gender) H.underwear_color = random_short_color() H.skin_tone = random_skin_tone() - H.hair_style = random_hair_style(H.gender) - H.facial_hair_style = random_facial_hair_style(H.gender) + H.hairstyle = random_hairstyle(H.gender) + H.facial_hairstyle = random_facial_hairstyle(H.gender) H.hair_color = random_short_color() H.facial_hair_color = H.hair_color H.eye_color = random_eye_color() @@ -28,8 +28,8 @@ H.dna.features["mcolor"] = random_short_color() H.dna.features["ethcolor"] = GLOB.color_list_ethereal[pick(GLOB.color_list_ethereal)] H.dna.features["tail_lizard"] = pick(GLOB.tails_list_lizard) - H.dna.features["snout"] = pick(GLOB.snouts_list) - H.dna.features["horns"] = pick(GLOB.horns_list) + H.dna.features["snout"] = pick(GLOB.snouts_list) + H.dna.features["horns"] = pick(GLOB.horns_list) H.dna.features["frills"] = pick(GLOB.frills_list) H.dna.features["spines"] = pick(GLOB.spines_list) H.dna.features["body_markings"] = pick(GLOB.body_markings_list) diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm index 2a0ab48bb69..b452b029c49 100644 --- a/code/modules/admin/secrets.dm +++ b/code/modules/admin/secrets.dm @@ -528,7 +528,7 @@ return SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Dwarf Beards")) for(var/mob/living/carbon/human/B in GLOB.carbon_list) - B.facial_hair_style = "Dward Beard" + B.facial_hairstyle = "Dward Beard" B.update_hair() message_admins("[key_name_admin(usr)] activated dorf mode") diff --git a/code/modules/antagonists/abductor/machinery/experiment.dm b/code/modules/antagonists/abductor/machinery/experiment.dm index c96fddc7617..5b921123e56 100644 --- a/code/modules/antagonists/abductor/machinery/experiment.dm +++ b/code/modules/antagonists/abductor/machinery/experiment.dm @@ -75,13 +75,13 @@ eyes.Blend("#[H.eye_color]", ICON_MULTIPLY) var/datum/sprite_accessory/S - S = GLOB.hair_styles_list[H.hair_style] + S = GLOB.hairstyles_list[H.hairstyle] if(S && (HAIR in H.dna.species.species_traits)) var/icon/hair = icon("icon" = S.icon, "icon_state" = "[S.icon_state]") hair.Blend("#[H.hair_color]", ICON_MULTIPLY) eyes.Blend(hair, ICON_OVERLAY) - S = GLOB.facial_hair_styles_list[H.facial_hair_style] + S = GLOB.facial_hairstyles_list[H.facial_hairstyle] if(S && (FACEHAIR in H.dna.species.species_traits)) var/icon/facial = icon("icon" = S.icon, "icon_state" = "[S.icon_state]") facial.Blend("#[H.facial_hair_color]", ICON_MULTIPLY) diff --git a/code/modules/antagonists/blob/blob_mobs.dm b/code/modules/antagonists/blob/blob_mobs.dm index a74fed1251d..4b4adb9082e 100644 --- a/code/modules/antagonists/blob/blob_mobs.dm +++ b/code/modules/antagonists/blob/blob_mobs.dm @@ -127,7 +127,7 @@ death_cloud_size = 0 icon = H.icon icon_state = "zombie" - H.hair_style = null + H.hairstyle = null H.update_hair() H.forceMove(src) oldguy = H diff --git a/code/modules/antagonists/fugitive/fugitive_outfits.dm b/code/modules/antagonists/fugitive/fugitive_outfits.dm index c9d49a7d9e4..995d1a5eb70 100644 --- a/code/modules/antagonists/fugitive/fugitive_outfits.dm +++ b/code/modules/antagonists/fugitive/fugitive_outfits.dm @@ -33,8 +33,8 @@ H.eye_color = "000" H.gender = MALE H.skin_tone = "caucasian3" - H.hair_style = "Business Hair 3" - H.facial_hair_style = "Shaved" + H.hairstyle = "Business Hair 3" + H.facial_hairstyle = "Shaved" H.hair_color = "000" H.facial_hair_color = H.hair_color H.update_body() diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm index f28d96e4885..3e0d77dde2d 100644 --- a/code/modules/awaymissions/corpse.dm +++ b/code/modules/awaymissions/corpse.dm @@ -153,8 +153,8 @@ var/backpack_contents = -1 var/suit_store = -1 - var/hair_style - var/facial_hair_style + var/hairstyle + var/facial_hairstyle var/skin_tone /obj/effect/mob_spawn/human/Initialize() @@ -174,14 +174,14 @@ H.underwear = "Nude" H.undershirt = "Nude" H.socks = "Nude" - if(hair_style) - H.hair_style = hair_style + if(hairstyle) + H.hairstyle = hairstyle else - H.hair_style = random_hair_style(gender) - if(facial_hair_style) - H.facial_hair_style = facial_hair_style + H.hairstyle = random_hairstyle(gender) + if(facial_hairstyle) + H.facial_hairstyle = facial_hairstyle else - H.facial_hair_style = random_facial_hair_style(gender) + H.facial_hairstyle = random_facial_hairstyle(gender) if(skin_tone) H.skin_tone = skin_tone else diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index aa589bced19..3aab8c669ca 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -49,25 +49,23 @@ GLOBAL_LIST_EMPTY(preferences_datums) //character preferences var/real_name //our character's name - var/be_random_name = 0 //whether we'll have a random name every round - var/be_random_body = 0 //whether we'll have a random body every round - var/be_random_species = 0 //whether we'll be a random species every round var/gender = MALE //gender of character (well duh) var/age = 30 //age of character var/underwear = "Nude" //underwear type var/underwear_color = "000" //underwear color var/undershirt = "Nude" //undershirt type var/socks = "Nude" //socks type - var/backbag = DBACKPACK //backpack type + var/backpack = DBACKPACK //backpack type var/jumpsuit_style = PREF_SUIT //suit/skirt - var/hair_style = "Bald" //Hair type + var/hairstyle = "Bald" //Hair type var/hair_color = "000" //Hair color - var/facial_hair_style = "Shaved" //Face hair type + var/facial_hairstyle = "Shaved" //Face hair type var/facial_hair_color = "000" //Facial hair color var/skin_tone = "caucasian1" //Skin color var/eye_color = "000" //Eye color var/datum/species/pref_species = new /datum/species/human() //Mutant race var/list/features = list("mcolor" = "FFF", "ethcolor" = "9c3030", "tail_lizard" = "Smooth", "tail_human" = "None", "snout" = "Round", "horns" = "None", "ears" = "None", "wings" = "None", "frills" = "None", "spines" = "None", "body_markings" = "None", "legs" = "Normal Legs", "moth_wings" = "Plain", "moth_markings" = "None") + var/list/randomise = list(RANDOM_UNDERWEAR = TRUE, RANDOM_UNDERWEAR_COLOR = TRUE, RANDOM_UNDERSHIRT = TRUE, RANDOM_SOCKS = TRUE, RANDOM_BACKPACK = TRUE, RANDOM_JUMPSUIT_STYLE = TRUE, RANDOM_HAIRSTYLE = TRUE, RANDOM_HAIR_COLOR = TRUE, RANDOM_FACIAL_HAIRSTYLE = TRUE, RANDOM_FACIAL_HAIR_COLOR = TRUE, RANDOM_SKIN_TONE = TRUE, RANDOM_EYE_COLOR = TRUE) var/list/genders = list(MALE, FEMALE, PLURAL) var/list/friendlyGenders = list("Male" = "male", "Female" = "female", "Other" = "plural") @@ -182,13 +180,10 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += "
| "
if(is_banned_from(user.ckey, "Appearance"))
dat += "You are banned from using custom names and appearances. You can continue to adjust your characters, but you will be randomised once you join the game. " - if (!be_random_species) // don't let random species choose their name - dat += "Random Name " - dat += "Always Random Name: [be_random_name ? "Yes" : "No"] " - dat += "Name: " - dat += "[real_name] " - else - dat += "Name Randomized (always random species) " + dat += "Random Name " + dat += "Always Random Name: [(randomise[RANDOM_NAME]) ? "Yes" : "No"] " + dat += "Name: " + dat += "[real_name] " if(!(AGENDER in pref_species.species_traits)) var/dispGender @@ -198,10 +193,13 @@ GLOBAL_LIST_EMPTY(preferences_datums) dispGender = "Female" else dispGender = "Other" - dat += "Gender: [dispGender] " - dat += "Age: [age] " + dat += "Gender: [dispGender]" + dat += "Always Random Gender: [(randomise[RANDOM_GENDER]) ? "Yes" : "No"]" - dat += "Special Names: " + dat += " Age: [age]" + dat += "Always Random Age: [(randomise[RANDOM_AGE]) ? "Yes" : "No"]" + + dat += " Special Names: " var/old_group for(var/custom_name_id in GLOB.preferences_custom_names) var/namedata = GLOB.preferences_custom_names[custom_name_id] @@ -221,21 +219,37 @@ GLOBAL_LIST_EMPTY(preferences_datums) dat += " Body" dat += "Random Body " - dat += "Always Random Body: [be_random_body ? "Yes" : "No"]" + dat += "Always Random Body: [(randomise[RANDOM_BODY]) ? "Yes" : "No"] " dat += "
|