9dfa78cb47
About The Pull Request
Changes our current underwear selection to greyscale so you can color them any way you like, just like hair.
Removed duplicate underwear types that only served as a few color options(female_yellow, male_blue, ect.) Underwear with designs are unaffected(female_uk, male_commie, ect.)
Added a new option in dressers to change underwear color.
Changed some underwear names to fit the new option(female_red is now female_lace, ect.)
A9hAqkxgin
If all is well i plan on adding this to undershirts and socks too.
also HUGE thank you to nonfictiongames for the help!!!!
Why It's Good For The Game
More character customization in roleplaying game GOOD
Changelog
cl
add: Underwear can now have any color. (Your character will most likely be nude now so check your prefs!!)
add: Underwear color option in dressers
tweak: changed some underwear names
imagedel: deleted duplicate underwear
/cl
57 lines
2.1 KiB
Plaintext
57 lines
2.1 KiB
Plaintext
|
|
//The mob should have a gender you want before running this proc. Will run fine without H
|
|
/datum/preferences/proc/random_character(gender_override)
|
|
if(gender_override)
|
|
gender = gender_override
|
|
else
|
|
gender = pick(MALE,FEMALE)
|
|
underwear = random_underwear(gender)
|
|
underwear_color = random_short_color()
|
|
undershirt = random_undershirt(gender)
|
|
socks = random_socks()
|
|
skin_tone = random_skin_tone()
|
|
hair_style = random_hair_style(gender)
|
|
facial_hair_style = random_facial_hair_style(gender)
|
|
hair_color = random_short_color()
|
|
facial_hair_color = hair_color
|
|
eye_color = random_eye_color()
|
|
if(!pref_species)
|
|
var/rando_race = pick(GLOB.roundstart_races)
|
|
pref_species = new rando_race()
|
|
features = random_features()
|
|
age = rand(AGE_MIN,AGE_MAX)
|
|
|
|
/datum/preferences/proc/random_species()
|
|
var/random_species_type = GLOB.species_list[pick(GLOB.roundstart_races)]
|
|
pref_species = new random_species_type
|
|
|
|
/datum/preferences/proc/update_preview_icon()
|
|
// Determine what job is marked as 'High' priority, and dress them up as such.
|
|
var/datum/job/previewJob
|
|
var/highest_pref = 0
|
|
for(var/job in job_preferences)
|
|
if(job_preferences[job] > highest_pref)
|
|
previewJob = SSjob.GetJob(job)
|
|
highest_pref = job_preferences[job]
|
|
|
|
if(previewJob)
|
|
// Silicons only need a very basic preview since there is no customization for them.
|
|
if(istype(previewJob,/datum/job/ai))
|
|
parent.show_character_previews(image('icons/mob/ai.dmi', icon_state = resolve_ai_icon(preferred_ai_core_display), dir = SOUTH))
|
|
return
|
|
if(istype(previewJob,/datum/job/cyborg))
|
|
parent.show_character_previews(image('icons/mob/robots.dmi', icon_state = "robot", dir = SOUTH))
|
|
return
|
|
|
|
// Set up the dummy for its photoshoot
|
|
var/mob/living/carbon/human/dummy/mannequin = generate_or_wait_for_human_dummy(DUMMY_HUMAN_SLOT_PREFERENCES)
|
|
copy_to(mannequin)
|
|
|
|
if(previewJob)
|
|
mannequin.job = previewJob.title
|
|
previewJob.equip(mannequin, TRUE, preference_source = parent)
|
|
|
|
COMPILE_OVERLAYS(mannequin)
|
|
parent.show_character_previews(new /mutable_appearance(mannequin))
|
|
unset_busy_human_dummy(DUMMY_HUMAN_SLOT_PREFERENCES)
|