mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-31 00:26:56 +01:00
naked flavor text
This commit is contained in:
@@ -218,6 +218,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
"ipc_screen" = "Sunburst",
|
||||
"ipc_antenna" = "None",
|
||||
"flavor_text" = "",
|
||||
"naked_flavor_text" = "", //tempt edit
|
||||
"silicon_flavor_text" = "",
|
||||
"ooc_notes" = "",
|
||||
"meat_type" = "Mammalian",
|
||||
@@ -483,6 +484,17 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
dat += "[html_encode(features["flavor_text"])]<BR>" //skyrat - adds <br> and uses html_encode
|
||||
else
|
||||
dat += "[TextPreview(html_encode(features["flavor_text"]))]...<BR>" //skyrat edit, uses html_encode
|
||||
//tempt edit - nekked flavor text
|
||||
dat += "<h2>Naked Flavor Text</h2>"
|
||||
dat += "<a href='?_src_=prefs;preference=naked_flavor_text;task=input'><b>Set Naked Examine Text</b></a><br>"
|
||||
if(length(features["naked_flavor_text"]) <= 40)
|
||||
if(!length(features["naked_flavor_text"]))
|
||||
dat += "\[...\]<BR>"
|
||||
else
|
||||
dat += "[html_encode(features["naked_flavor_text"])]<BR>"
|
||||
else
|
||||
dat += "[TextPreview(html_encode(features["naked_flavor_text"]))]...<BR>"
|
||||
//tempt edit end
|
||||
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)
|
||||
@@ -1926,6 +1938,12 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
if(!isnull(msg))
|
||||
features["flavor_text"] = strip_html_simple(msg, MAX_FLAVOR_LEN, TRUE) //Skyrat edit, removed strip_html_simple()
|
||||
|
||||
//tempt edit
|
||||
if("naked_flavor_text")
|
||||
var/msg = input(usr, "Set the naked flavor text in your 'examine' verb. This should be IC, describing how your character would look like if naked.", "Naked Flavor Text", features["naked_flavor_text"]) as message|null
|
||||
if(!isnull(msg))
|
||||
features["naked_flavor_text"] = strip_html_simple(msg, MAX_FLAVOR_LEN, TRUE)
|
||||
//tempt edit end
|
||||
if("silicon_flavor_text")
|
||||
var/msg = 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"]) as message|null //Skyrat edit, removed stripped_multiline_input()
|
||||
if(!isnull(msg))
|
||||
|
||||
@@ -948,6 +948,9 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
else //We have no old flavortext, default to new
|
||||
S["feature_flavor_text"] >> features["flavor_text"]
|
||||
|
||||
//tempt edit
|
||||
S["feature_naked_flavor_text"] >> features["naked_flavor_text"]
|
||||
//end
|
||||
|
||||
S["silicon_feature_flavor_text"] >> features["silicon_flavor_text"]
|
||||
|
||||
@@ -1102,6 +1105,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
medical_records = copytext(medical_records, 1, MAX_FLAVOR_LEN)
|
||||
|
||||
features["flavor_text"] = copytext(features["flavor_text"], 1, MAX_FLAVOR_LEN)
|
||||
features["naked_flavor_text"] = copytext(features["naked_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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user