mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-30 16:16:47 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -107,6 +107,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
var/pda_style = MONO
|
||||
var/pda_color = "#808000"
|
||||
var/pda_skin = PDA_SKIN_ALT
|
||||
var/list/alt_titles_preferences = list()
|
||||
|
||||
// Added by SPLURT (Custom Blood Color)
|
||||
var/custom_blood_color = FALSE
|
||||
@@ -132,7 +133,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
var/view_pixelshift = FALSE
|
||||
var/enable_personal_chat_color = FALSE
|
||||
var/personal_chat_color = "#ffffff"
|
||||
var/list/alt_titles_preferences = list()
|
||||
var/lust_tolerance = 100
|
||||
var/sexual_potency = 15
|
||||
//Sandstorm CHANGES END
|
||||
@@ -1810,11 +1810,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
|
||||
HTML += "<tr bgcolor='[job.selection_color]'><td width='60%' align='right'>"
|
||||
var/rank = job.title
|
||||
//Skyrat changes
|
||||
var/displayed_rank = rank
|
||||
if(job.alt_titles.len && (rank in alt_titles_preferences))
|
||||
displayed_rank = alt_titles_preferences[rank]
|
||||
//End of skyrat changes
|
||||
lastJob = job
|
||||
if(jobban_isbanned(user, rank))
|
||||
HTML += "<font color=red>[rank]</font></td><td><a href='?_src_=prefs;bancheck=[rank]'> BANNED</a></td></tr>"
|
||||
@@ -1836,16 +1834,15 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
if((job_preferences["[SSjob.overflow_role]"] == JP_LOW) && (rank != SSjob.overflow_role) && !jobban_isbanned(user, SSjob.overflow_role))
|
||||
HTML += "<font color=orange>[rank]</font></td><td></td></tr>"
|
||||
continue
|
||||
//Skyrat changes
|
||||
var/rank_title_line = "[displayed_rank]"
|
||||
if((rank in GLOB.command_positions) || (rank == "AI"))//Bold head jobs
|
||||
rank_title_line = "<b>[rank_title_line]</b>"
|
||||
if(job.alt_titles.len)
|
||||
rank_title_line = "<a href='?_src_=prefs;preference=job;task=alt_title;job_title=[job.title]'>[rank_title_line]</a>"
|
||||
|
||||
else
|
||||
rank_title_line = "<span class='dark'>[rank_title_line]</span>" //Make it dark if we're not adding a button for alt titles
|
||||
HTML += rank_title_line
|
||||
//End of skyrat changes
|
||||
|
||||
HTML += "</td><td width='40%'>"
|
||||
|
||||
@@ -2099,7 +2096,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
SetChoices(user)
|
||||
if("setJobLevel")
|
||||
UpdateJobPreference(user, href_list["text"], text2num(href_list["level"]))
|
||||
//SKYRAT CHANGES
|
||||
if("alt_title")
|
||||
var/job_title = href_list["job_title"]
|
||||
var/titles_list = list(job_title)
|
||||
@@ -2115,7 +2111,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
else
|
||||
alt_titles_preferences[job_title] = chosen_title
|
||||
SetChoices(user)
|
||||
//END OF SKYRAT CHANGES
|
||||
else
|
||||
SetChoices(user)
|
||||
return TRUE
|
||||
|
||||
@@ -1121,6 +1121,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
if(json_from_file)
|
||||
belly_prefs = json_from_file["belly_prefs"]
|
||||
|
||||
S["alt_titles_preferences"] >> alt_titles_preferences
|
||||
//gear loadout
|
||||
if(istext(S["loadout"]))
|
||||
loadout_data = safe_json_decode(S["loadout"])
|
||||
@@ -1386,9 +1387,16 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
S["pregnancy_inflation"] >> pregnancy_inflation
|
||||
S["pregnancy_breast_growth"] >> pregnancy_breast_growth
|
||||
//SPLURT EDIT END
|
||||
|
||||
|
||||
loadout_slot = sanitize_num_clamp(loadout_slot, 1, MAXIMUM_LOADOUT_SAVES, 1, TRUE)
|
||||
|
||||
alt_titles_preferences = SANITIZE_LIST(alt_titles_preferences)
|
||||
if(SSjob)
|
||||
for(var/datum/job/job in SSjob.occupations)
|
||||
if(alt_titles_preferences[job.title])
|
||||
if(!(alt_titles_preferences[job.title] in job.alt_titles))
|
||||
alt_titles_preferences.Remove(job.title)
|
||||
|
||||
cit_character_pref_load(S)
|
||||
|
||||
splurt_character_pref_load(S)
|
||||
@@ -1553,6 +1561,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
WRITE_FILE(S["feature_neckfire"], features["neckfire"])
|
||||
WRITE_FILE(S["feature_neckfire_color"], features["neckfire_color"])
|
||||
|
||||
WRITE_FILE(S["alt_titles_preferences"], alt_titles_preferences)
|
||||
|
||||
WRITE_FILE(S["feature_ooc_notes"], features["ooc_notes"])
|
||||
|
||||
WRITE_FILE(S["feature_color_scheme"], features["color_scheme"])
|
||||
|
||||
Reference in New Issue
Block a user