mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-12 02:43:49 +00:00
Silicon Flavortexts. (SCRUTINISE HEAVILY) (#12395)
* Part 1 - Adding the component * Part 2 - Making the WRITE_FILE before changing the pref menu. * Part 3 - Mirroring existing code, instead of tacking it on because im both lazy, and want a distinction * Part 4 - Changes the preference tab to accomodate this. * we made a brief fucky wucky! * make it look noice * fuckywucky mk2 * Part 5 - make it apart of the helper list (woops) * that'yll do it. * maybe fix? * nope, just hit the delete button on their flavortext entirely :agony: * Update preferences_savefile.dm * Update silicon.dm * Update preferences.dm * Update silicon.dm
This commit is contained in:
@@ -216,6 +216,7 @@
|
|||||||
"ipc_screen" = snowflake_ipc_antenna_list ? pick(snowflake_ipc_antenna_list) : "None",
|
"ipc_screen" = snowflake_ipc_antenna_list ? pick(snowflake_ipc_antenna_list) : "None",
|
||||||
"ipc_antenna" = "None",
|
"ipc_antenna" = "None",
|
||||||
"flavor_text" = "",
|
"flavor_text" = "",
|
||||||
|
"silicon_flavor_text" = "",
|
||||||
"meat_type" = "Mammalian",
|
"meat_type" = "Mammalian",
|
||||||
"body_model" = body_model,
|
"body_model" = body_model,
|
||||||
"body_size" = RESIZE_DEFAULT_SIZE
|
"body_size" = RESIZE_DEFAULT_SIZE
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
"ipc_screen" = "Sunburst",
|
"ipc_screen" = "Sunburst",
|
||||||
"ipc_antenna" = "None",
|
"ipc_antenna" = "None",
|
||||||
"flavor_text" = "",
|
"flavor_text" = "",
|
||||||
|
"silicon_flavor_text" = "",
|
||||||
"ooc_notes" = "",
|
"ooc_notes" = "",
|
||||||
"meat_type" = "Mammalian",
|
"meat_type" = "Mammalian",
|
||||||
"body_model" = MALE,
|
"body_model" = MALE,
|
||||||
@@ -367,6 +368,15 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
dat += "[features["flavor_text"]]"
|
dat += "[features["flavor_text"]]"
|
||||||
else
|
else
|
||||||
dat += "[TextPreview(features["flavor_text"])]...<BR>"
|
dat += "[TextPreview(features["flavor_text"])]...<BR>"
|
||||||
|
dat += "<h2>Silicon Flavor Text</h2>"
|
||||||
|
dat += "<a href='?_src_=prefs;preference=silicon_flavor_text;task=input'><b>Set Silicon Examine Text</b></a><br>"
|
||||||
|
if(length(features["silicon_flavor_text"]) <= 40)
|
||||||
|
if(!length(features["silicon_flavor_text"]))
|
||||||
|
dat += "\[...\]"
|
||||||
|
else
|
||||||
|
dat += "[features["silicon_flavor_text"]]"
|
||||||
|
else
|
||||||
|
dat += "[TextPreview(features["silicon_flavor_text"])]...<BR>"
|
||||||
dat += "<h2>OOC notes</h2>"
|
dat += "<h2>OOC notes</h2>"
|
||||||
dat += "<a href='?_src_=prefs;preference=ooc_notes;task=input'><b>Set OOC notes</b></a><br>"
|
dat += "<a href='?_src_=prefs;preference=ooc_notes;task=input'><b>Set OOC notes</b></a><br>"
|
||||||
var/ooc_notes_len = length(features["ooc_notes"])
|
var/ooc_notes_len = length(features["ooc_notes"])
|
||||||
@@ -1616,6 +1626,11 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
if(!isnull(msg))
|
if(!isnull(msg))
|
||||||
features["flavor_text"] = html_decode(msg)
|
features["flavor_text"] = html_decode(msg)
|
||||||
|
|
||||||
|
if("silicon_flavor_text")
|
||||||
|
var/msg = stripped_multiline_input(usr, "Set the silicon flavor text in your 'examine' verb. This can also be used for OOC notes and preferences!", "Silicon Flavor Text", features["silicon_flavor_text"], MAX_FLAVOR_LEN, TRUE)
|
||||||
|
if(!isnull(msg))
|
||||||
|
features["silicon_flavor_text"] = html_decode(msg)
|
||||||
|
|
||||||
if("ooc_notes")
|
if("ooc_notes")
|
||||||
var/msg = stripped_multiline_input(usr, "Set always-visible OOC notes related to content preferences. THIS IS NOT FOR CHARACTER DESCRIPTIONS!", "OOC notes", features["ooc_notes"], MAX_FLAVOR_LEN, TRUE)
|
var/msg = stripped_multiline_input(usr, "Set always-visible OOC notes related to content preferences. THIS IS NOT FOR CHARACTER DESCRIPTIONS!", "OOC notes", features["ooc_notes"], MAX_FLAVOR_LEN, TRUE)
|
||||||
if(!isnull(msg))
|
if(!isnull(msg))
|
||||||
|
|||||||
@@ -553,7 +553,11 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
|||||||
else //We have no old flavortext, default to new
|
else //We have no old flavortext, default to new
|
||||||
S["feature_flavor_text"] >> features["flavor_text"]
|
S["feature_flavor_text"] >> features["flavor_text"]
|
||||||
|
|
||||||
|
|
||||||
|
S["silicon_feature_flavor_text"] >> features["silicon_flavor_text"]
|
||||||
|
|
||||||
S["feature_ooc_notes"] >> features["ooc_notes"]
|
S["feature_ooc_notes"] >> features["ooc_notes"]
|
||||||
|
S["silicon_flavor_text"] >> features["silicon_flavor_text"]
|
||||||
|
|
||||||
S["vore_flags"] >> vore_flags
|
S["vore_flags"] >> vore_flags
|
||||||
S["vore_taste"] >> vore_taste
|
S["vore_taste"] >> vore_taste
|
||||||
@@ -678,6 +682,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
|||||||
|
|
||||||
|
|
||||||
features["flavor_text"] = copytext(features["flavor_text"], 1, MAX_FLAVOR_LEN)
|
features["flavor_text"] = copytext(features["flavor_text"], 1, MAX_FLAVOR_LEN)
|
||||||
|
features["silicon_flavor_text"] = copytext(features["silicon_flavor_text"], 1, MAX_FLAVOR_LEN)
|
||||||
features["ooc_notes"] = copytext(features["ooc_notes"], 1, MAX_FLAVOR_LEN)
|
features["ooc_notes"] = copytext(features["ooc_notes"], 1, MAX_FLAVOR_LEN)
|
||||||
|
|
||||||
joblessrole = sanitize_integer(joblessrole, 1, 3, initial(joblessrole))
|
joblessrole = sanitize_integer(joblessrole, 1, 3, initial(joblessrole))
|
||||||
|
|||||||
@@ -56,6 +56,12 @@
|
|||||||
diag_hud_set_status()
|
diag_hud_set_status()
|
||||||
diag_hud_set_health()
|
diag_hud_set_health()
|
||||||
|
|
||||||
|
/mob/living/silicon/ComponentInitialize()
|
||||||
|
. = ..()
|
||||||
|
AddElement(/datum/element/flavor_text, _name = "Silicon Flavor Text", _save_key = "silicon_flavor_text")
|
||||||
|
AddElement(/datum/element/flavor_text, "", "Temporary Flavor Text", "This should be used only for things pertaining to the current round!")
|
||||||
|
AddElement(/datum/element/flavor_text, _name = "OOC Notes", _addendum = "Put information on ERP/vore/lewd-related preferences here. THIS SHOULD NOT CONTAIN REGULAR FLAVORTEXT!!", _always_show = TRUE, _save_key = "ooc_notes", _examine_no_preview = TRUE)
|
||||||
|
|
||||||
/mob/living/silicon/med_hud_set_health()
|
/mob/living/silicon/med_hud_set_health()
|
||||||
return //we use a different hud
|
return //we use a different hud
|
||||||
|
|
||||||
|
|||||||
@@ -35,4 +35,5 @@
|
|||||||
WRITE_FILE(S["feature_xeno_head"], features["xenohead"])
|
WRITE_FILE(S["feature_xeno_head"], features["xenohead"])
|
||||||
//flavor text
|
//flavor text
|
||||||
WRITE_FILE(S["feature_flavor_text"], features["flavor_text"])
|
WRITE_FILE(S["feature_flavor_text"], features["flavor_text"])
|
||||||
|
WRITE_FILE(S["silicon_feature_flavor_text"], features["silicon_flavor_text"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user