Merge pull request #5795 from CHOMPStation2/upstream-merge-14548

[MIRROR] Character Setup Lore Option Tweaks
This commit is contained in:
Nadyr
2023-03-06 15:59:50 -05:00
committed by GitHub
13 changed files with 112 additions and 24 deletions
+6
View File
@@ -348,6 +348,7 @@ var/global/list/PDA_Manifest = list()
G.fields["real_rank"] = H.mind.assigned_role
G.fields["rank"] = assignment
G.fields["age"] = H.age
G.fields["languages"] = list2text(H.languages,", ")
if(H.get_FBP_type())
G.fields["brain_type"] = H.get_FBP_type()
else
@@ -358,6 +359,7 @@ var/global/list/PDA_Manifest = list()
G.fields["sex"] = gender2text(H.gender)
G.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" //VOREStation Edit
G.fields["home_system"] = H.home_system
G.fields["birthplace"] = H.birthplace
G.fields["citizenship"] = H.citizenship
G.fields["faction"] = H.personal_faction
G.fields["religion"] = H.religion
@@ -393,6 +395,7 @@ var/global/list/PDA_Manifest = list()
L.fields["name"] = H.real_name
L.fields["rank"] = H.mind.assigned_role
L.fields["age"] = H.age
L.fields["languages"] = list2text(H.languages,", ")
L.fields["fingerprint"] = md5(H.dna.uni_identity)
L.fields["sex"] = gender2text(H.gender)
L.fields["id_gender"] = gender2text(H.identifying_gender)
@@ -406,6 +409,7 @@ var/global/list/PDA_Manifest = list()
L.fields["identity"] = H.dna.UI // "
L.fields["species"] = "[H.custom_species ? "[H.custom_species] ([H.species.name])" : H.species.name]" //VOREStation Edit
L.fields["home_system"] = H.home_system
L.fields["birthplace"] = H.birthplace
L.fields["citizenship"] = H.citizenship
L.fields["faction"] = H.personal_faction
L.fields["religion"] = H.religion
@@ -445,12 +449,14 @@ var/global/list/PDA_Manifest = list()
G.fields["real_rank"] = "Unassigned"
G.fields["sex"] = "Unknown"
G.fields["age"] = "Unknown"
G.fields["languages"] = "Unknown"
G.fields["brain_type"] = "Unknown"
G.fields["fingerprint"] = "Unknown"
G.fields["p_stat"] = "Active"
G.fields["m_stat"] = "Stable"
G.fields["species"] = SPECIES_HUMAN
G.fields["home_system"] = "Unknown"
G.fields["birthplace"] = "Unknown"
G.fields["citizenship"] = "Unknown"
G.fields["faction"] = "Unknown"
G.fields["religion"] = "Unknown"
+1
View File
@@ -74,6 +74,7 @@
general.fields["faction"] = random_general_record.fields["faction"]
general.fields["fingerprint"] = random_general_record.fields["fingerprint"]
general.fields["home_system"] = random_general_record.fields["home_system"]
general.fields["birthplace"] = random_general_record.fields["birthplace"]
general.fields["religion"] = random_general_record.fields["religion"]
if(random_medical_record)
medical.fields["b_type"] = random_medical_record.fields["b_type"]
+1
View File
@@ -420,6 +420,7 @@
if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
P.info += {"Name: [active1.fields["name"]] ID: [active1.fields["id"]]
<br>\nSex: [active1.fields["sex"]]
<br>\nSpecies: [active1.fields["species"]]
<br>\nAge: [active1.fields["age"]]
<br>\nFingerprint: [active1.fields["fingerprint"]]
<br>\nPhysical Status: [active1.fields["p_stat"]]
+1
View File
@@ -426,6 +426,7 @@
if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
P.info += {"Name: [active1.fields["name"]] ID: [active1.fields["id"]]
<br>\nSex: [active1.fields["sex"]]
<br>\nSpecies: [active1.fields["species"]]
<br>\nAge: [active1.fields["age"]]
<br>\nFingerprint: [active1.fields["fingerprint"]]
<br>\nPhysical Status: [active1.fields["p_stat"]]
+19
View File
@@ -39,6 +39,12 @@
"species" = "Please input new species:",
"age" = "Please input new age:",
"fingerprint" = "Please input new fingerprint hash:",
"home_system" = "Please input new home:",
"birthplace" = "Please input new birthplace:",
"citizenship" = "Please input new citizenship:",
"languages" = "Please input known languages:",
"faction" = "Please input new employer:",
"religion" = "Please input new religion:",
)
field_edit_choices = list(
// General
@@ -113,6 +119,12 @@
fields[++fields.len] = FIELD("Species", active1.fields["species"], "species")
fields[++fields.len] = FIELD("Age", active1.fields["age"], "age")
fields[++fields.len] = FIELD("Fingerprint", active1.fields["fingerprint"], "fingerprint")
fields[++fields.len] = FIELD("Home", active1.fields["home_system"], "home_system")
fields[++fields.len] = FIELD("Birthplace", active1.fields["birthplace"], "birthplace")
fields[++fields.len] = FIELD("Citizenship", active1.fields["citizenship"], "citizenship")
fields[++fields.len] = FIELD("Faction", active1.fields["faction"], "faction")
fields[++fields.len] = FIELD("Religion", active1.fields["religion"], "religion")
fields[++fields.len] = FIELD("Known Languages", active1.fields["languages"], "languages")
fields[++fields.len] = FIELD("Physical Status", active1.fields["p_stat"], null)
fields[++fields.len] = FIELD("Mental Status", active1.fields["m_stat"], null)
var/list/photos = list()
@@ -309,8 +321,15 @@
if(istype(active1, /datum/data/record) && data_core.general.Find(active1))
P.info += {"Name: [active1.fields["name"]] ID: [active1.fields["id"]]
<br>\nSex: [active1.fields["sex"]]
<br>\nSpecies: [active1.fields["species"]]
<br>\nAge: [active1.fields["age"]]
<br>\nFingerprint: [active1.fields["fingerprint"]]
<br>\nHome: [active1.fields["home_system"]]
<br>\nBirthplace: [active1.fields["birthplace"]]
<br>\nCitizenship: [active1.fields["citizenship"]]
<br>\nFaction: [active1.fields["faction"]]
<br>\nReligion: [active1.fields["religion"]]
<br>\nKnown Languages: [active1.fields["languages"]]
<br>\nPhysical Status: [active1.fields["p_stat"]]
<br>\nMental Status: [active1.fields["m_stat"]]<br>
<br>\nEmployment/Skills Summary: [active1.fields["notes"]]
@@ -139,6 +139,7 @@
data["exploit"]["species"] = html_encode(L.fields["species"])
data["exploit"]["rank"] = html_encode(L.fields["rank"])
data["exploit"]["home_system"] = html_encode(L.fields["home_system"])
data["exploit"]["birthplace"] = html_encode(L.fields["birthplace"])
data["exploit"]["citizenship"] = html_encode(L.fields["citizenship"])
data["exploit"]["faction"] = html_encode(L.fields["faction"])
data["exploit"]["religion"] = html_encode(L.fields["religion"])
@@ -7,6 +7,7 @@
S["sec_record"] >> pref.sec_record
S["gen_record"] >> pref.gen_record
S["home_system"] >> pref.home_system
S["birthplace"] >> pref.birthplace
S["citizenship"] >> pref.citizenship
S["faction"] >> pref.faction
S["religion"] >> pref.religion
@@ -17,6 +18,7 @@
S["sec_record"] << pref.sec_record
S["gen_record"] << pref.gen_record
S["home_system"] << pref.home_system
S["birthplace"] << pref.birthplace
S["citizenship"] << pref.citizenship
S["faction"] << pref.faction
S["religion"] << pref.religion
@@ -24,6 +26,7 @@
/datum/category_item/player_setup_item/general/background/sanitize_character()
if(!pref.home_system) pref.home_system = "Unset"
if(!pref.birthplace) pref.birthplace = "Unset"
if(!pref.citizenship) pref.citizenship = "None"
if(!pref.faction) pref.faction = "None"
if(!pref.religion) pref.religion = "None"
@@ -36,6 +39,7 @@
character.sec_record = pref.sec_record
character.gen_record = pref.gen_record
character.home_system = pref.home_system
character.birthplace = pref.birthplace
character.citizenship = pref.citizenship
character.personal_faction = pref.faction
character.religion = pref.religion
@@ -43,7 +47,8 @@
/datum/category_item/player_setup_item/general/background/content(var/mob/user)
. += "<b>Background Information</b><br>"
. += "Economic Status: <a href='?src=\ref[src];econ_status=1'>[pref.economic_status]</a><br/>"
. += "Home System: <a href='?src=\ref[src];home_system=1'>[pref.home_system]</a><br/>"
. += "Home: <a href='?src=\ref[src];home_system=1'>[pref.home_system]</a><br/>"
. += "Birthplace: <a href='?src=\ref[src];birthplace=1'>[pref.birthplace]</a><br/>"
. += "Citizenship: <a href='?src=\ref[src];citizenship=1'>[pref.citizenship]</a><br/>"
. += "Faction: <a href='?src=\ref[src];faction=1'>[pref.faction]</a><br/>"
. += "Religion: <a href='?src=\ref[src];religion=1'>[pref.religion]</a><br/>"
@@ -67,7 +72,7 @@
return TOPIC_REFRESH
else if(href_list["home_system"])
var/choice = tgui_input_list(user, "Please choose a home system.", "Character Preference", home_system_choices + list("Unset","Other"), pref.home_system)
var/choice = tgui_input_list(user, "Please choose your home planet and/or system. This should be your current primary residence. Select \"Other\" to specify manually.", "Character Preference", home_system_choices + list("Unset","Other"), pref.home_system)
if(!choice || !CanUseTopic(user))
return TOPIC_NOACTION
if(choice == "Other")
@@ -78,8 +83,20 @@
pref.home_system = choice
return TOPIC_REFRESH
else if(href_list["birthplace"])
var/choice = tgui_input_list(user, "Please choose the planet and/or system or other appropriate location that you were born/created. Select \"Other\" to specify manually.", "Character Preference", home_system_choices + list("Unset","Other"), pref.birthplace)
if(!choice || !CanUseTopic(user))
return TOPIC_NOACTION
if(choice == "Other")
var/raw_choice = sanitize(tgui_input_text(user, "Please enter a birthplace.", "Character Preference", null, MAX_NAME_LEN), MAX_NAME_LEN)
if(raw_choice && CanUseTopic(user))
pref.birthplace = raw_choice
else
pref.birthplace = choice
return TOPIC_REFRESH
else if(href_list["citizenship"])
var/choice = tgui_input_list(user, "Please choose your current citizenship.", "Character Preference", citizenship_choices + list("None","Other"), pref.citizenship)
var/choice = tgui_input_list(user, "Please select the faction or political entity with which you currently hold citizenship. Select \"Other\" to specify manually.", "Character Preference", citizenship_choices + list("None","Other"), pref.citizenship)
if(!choice || !CanUseTopic(user))
return TOPIC_NOACTION
if(choice == "Other")
@@ -91,7 +108,7 @@
return TOPIC_REFRESH
else if(href_list["faction"])
var/choice = tgui_input_list(user, "Please choose a faction to work for.", "Character Preference", faction_choices + list("None","Other"), pref.faction)
var/choice = tgui_input_list(user, "Please choose the faction you primarily work for, if you are not under the direct employ of NanoTrasen. Select \"Other\" to specify manually.", "Character Preference", faction_choices + list("None","Other"), pref.faction)
if(!choice || !CanUseTopic(user))
return TOPIC_NOACTION
if(choice == "Other")
@@ -103,7 +120,7 @@
return TOPIC_REFRESH
else if(href_list["religion"])
var/choice = tgui_input_list(user, "Please choose a religion.", "Character Preference", religion_choices + list("None","Other"), pref.religion)
var/choice = tgui_input_list(user, "Please choose a religion. Select \"Other\" to specify manually.", "Character Preference", religion_choices + list("None","Other"), pref.religion)
if(!choice || !CanUseTopic(user))
return TOPIC_NOACTION
if(choice == "Other")
+3 -2
View File
@@ -76,8 +76,9 @@ var/list/preferences_datums = list()
var/synth_markings = 1 //Enable/disable markings on synth parts. //VOREStation Edit - 1 by default
//Some faction information.
var/home_system = "Unset" //System of birth.
var/citizenship = "None" //Current home system.
var/home_system = "Unset" //Current home or residence.
var/birthplace = "Unset" //Location of birth.
var/citizenship = "None" //Government or similar entity with which you hold citizenship.
var/faction = "None" //General associated faction.
var/religion = "None" //Religious association.
var/antag_faction = "None" //Antag associated faction.
+53 -16
View File
@@ -24,29 +24,66 @@ var/global/list/citizenship_choices = list(
)
var/global/list/home_system_choices = list(
"Sol",
"Vir",
"Nyx",
"Tau Ceti",
"Qerr'valis",
"Earth, Sol",
"Luna, Sol",
"Mars, Sol",
"Venus, Sol",
"Titan, Sol",
"Kara, Vir",
"Sif, Vir",
"Brinkburn, Nyx",
"Binma, Tau Ceti",
"Qerr'balak, Qerr'valis",
"Epsilon Ursae Minoris",
"Rarkajar"
"Meralar, Rarkajar",
"Tal, Vilous",
"Menhir, Alat-Hahr",
"Altam, Vazzend",
"Uh'Zata, Kelezakata",
"Moghes, Uuoea-Esa",
"Xohok, Uuoea-Esa",
"Varilak, Antares",
"Sanctorum, Sanctum",
"Infernum, Sanctum",
"Abundance in All Things Serene, Beta-Carnelium Ventrum",
"Jorhul, Barkalis",
"Shelf Flotilla",
"Ue-Orsi Flotilla"
)
var/global/list/faction_choices = list(
"Sol Central",
"Vey Med",
"Einstein Engines",
"NanoTrasen Incorporated",
"Hephaestus Industries",
"Vey-Medical",
"Zeng-Hu Pharmaceuticals",
"Ward-Takahashi GMC",
"Bishop Cybernetics",
"Morpheus Cyberkinetics",
"Xion Manufacturing Group",
"Free Trade Union",
"NanoTrasen",
"Ward-Takahashi GMB",
"Gilthari Exports",
"Major Bill's Transportation",
"Ironcrest Transport Group",
"Grayson Manufactories Ltd.",
"Aether Atmospherics",
"Zeng-Hu Pharmaceuticals",
"Hephaestus Industries",
"Morpheus Cyberkinetics",
"Xion Manufacturing Group"
"Focal Point Energistics",
"StarFlight Inc.",
"Oculum Broadcasting Network",
"Periphery Post",
"Free Anur Tribune",
"Centauri Provisions",
"Einstein Engines",
"Wulf Aeronautics",
"Gilthari Exports",
"Coyote Salvage Corp.",
"Chimera Genetics Corp.",
"Kitsuhana Heavy Industries",
"Independent Pilots Association",
"Local System Defense Force",
"United Solar Defense Force",
"Proxima Centauri Risk Control",
"HIVE Security",
"Stealth Assault Enterprises"
)
var/global/list/antag_faction_choices = list() //Should be populated after brainstorming. Leaving as blank in case brainstorming does not occur.
@@ -76,4 +113,4 @@ var/global/list/religion_choices = list(
"Tajr-kii Rarkajar",
"Agnosticism",
"Deism"
)
)
@@ -592,9 +592,11 @@
to_chat(usr, "<b>Species:</b> [R.fields["species"]]")
to_chat(usr, "<b>Assignment:</b> [R.fields["real_rank"]] ([R.fields["rank"]])")
to_chat(usr, "<b>Home System:</b> [R.fields["home_system"]]")
to_chat(usr, "<b>Birthplace:</b> [R.fields["birthplace"]]")
to_chat(usr, "<b>Citizenship:</b> [R.fields["citizenship"]]")
to_chat(usr, "<b>Primary Employer:</b> [R.fields["personal_faction"]]")
to_chat(usr, "<b>Religious Beliefs:</b> [R.fields["religion"]]")
to_chat(usr, "<b>Known Languages:</b> [R.fields["languages"]]")
to_chat(usr, "<b>Notes:</b> [R.fields["notes"]]")
to_chat(usr, "<a href='?src=\ref[src];emprecordComment=`'>\[View Comment Log\]</a>")
read = 1
@@ -54,6 +54,7 @@
// General information
var/home_system = ""
var/birthplace = ""
var/citizenship = ""
var/personal_faction = ""
var/religion = ""
+1
View File
@@ -74,6 +74,7 @@ const ExploitableInformation = (props, context) => {
<LabeledList.Item label="Age">{exploit.age}</LabeledList.Item>
<LabeledList.Item label="Rank">{exploit.rank}</LabeledList.Item>
<LabeledList.Item label="Home System">{exploit.home_system}</LabeledList.Item>
<LabeledList.Item label="Birthplace">{exploit.birthplace}</LabeledList.Item>
<LabeledList.Item label="Citizenship">{exploit.citizenship}</LabeledList.Item>
<LabeledList.Item label="Faction">{exploit.faction}</LabeledList.Item>
<LabeledList.Item label="Religion">{exploit.religion}</LabeledList.Item>
File diff suppressed because one or more lines are too long