diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 84a35163339b..cae0be02b0ac 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -82,6 +82,8 @@ var/const/MAX_SAVE_SLOTS = 10 //Synthetic specific preferences var/synthetic_name = "Undefined" var/synthetic_type = SYNTH_GEN_THREE + var/synth_manufacturer = "Weyland-Yutani" + var/new_manufacturer = "Weyland-Yutani" //Predator specific preferences. var/predator_name = "Undefined" var/predator_gender = MALE @@ -498,6 +500,7 @@ var/const/MAX_SAVE_SLOTS = 10 dat += "Synthetic Name: [synthetic_name]
" dat += "Synthetic Type: [synthetic_type]
" dat += "Synthetic Whitelist Status: [synth_status]
" + dat += "Manufacturer: [new_manufacturer]
" dat += "" else dat += "You do not have the whitelist for this role." @@ -1611,6 +1614,11 @@ var/const/MAX_SAVE_SLOTS = 10 if(new_relation) nanotrasen_relation = new_relation + if("synth_manufacturer") + var/synth_builder = input(user, "Choose your manufacturer.") as null|anything in list("Weyland-Yutani", "Borgia Industries", "Hyperdyne Systems", "Lasalle Bionational", "Sieg and Son", "Independent Manufacturer") + if(synth_builder) + new_manufacturer = synth_builder + if("prefsquad") var/new_pref_squad = input(user, "Choose your preferred squad.", "Character Preference") as null|anything in list("Alpha", "Bravo", "Charlie", "Delta", "None") if(new_pref_squad) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index c885e9b73af1..ccd9f89e6753 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -165,6 +165,7 @@ S["synth_name"] >> synthetic_name S["synth_type"] >> synthetic_type + S["synth_manufacturer"] >> synth_manufacturer S["pred_name"] >> predator_name S["pred_gender"] >> predator_gender S["pred_age"] >> predator_age @@ -242,6 +243,7 @@ adaptive_zoom = sanitize_integer(adaptive_zoom, 0, 2, 0) tooltips = sanitize_integer(tooltips, FALSE, TRUE, TRUE) + if(isnull(synth_manufacturer)) synth_manufacturer = initial(synth_manufacturer) synthetic_name = synthetic_name ? sanitize_text(synthetic_name, initial(synthetic_name)) : initial(synthetic_name) synthetic_type = sanitize_inlist(synthetic_type, PLAYER_SYNTHS, initial(synthetic_type)) predator_name = predator_name ? sanitize_text(predator_name, initial(predator_name)) : initial(predator_name) @@ -353,6 +355,7 @@ S["synth_name"] << synthetic_name S["synth_type"] << synthetic_type + S["synth_manufacturer"] << synth_manufacturer S["pred_name"] << predator_name S["pred_gender"] << predator_gender S["pred_age"] << predator_age