Switches the pref to be a boolean, switches the checks to be booleans, adds stomptext to even display the thing, and also hopefully saves the pref.

This commit is contained in:
Zattarra
2023-07-29 18:39:00 -07:00
parent e61aa587d9
commit c186b9daae
5 changed files with 15 additions and 8 deletions
@@ -6,7 +6,8 @@
/datum/preferences
max_save_slots = DEFAULT_SAVE_SLOTS
var/unholypref = "No" //Goin 2 hell fo dis one
var/stomppref = "No" // Please step on me.
var/stomppref = FALSE // Please step on me.
var/stomptext = "No" // For displaying the pref.
var/list/gfluid_blacklist = list() //Stuff you don't want people to cum into you
var/new_character_creator = TRUE // old/new character creator
var/show_in_directory = 1 //Show in Character Directory
@@ -10,6 +10,8 @@
directory_tag = sanitize_inlist(directory_tag, GLOB.char_directory_tags, initial(directory_tag))
directory_erptag = sanitize_inlist(directory_erptag, GLOB.char_directory_erptags, initial(directory_erptag))
directory_ad = strip_html_simple(directory_ad, MAX_FLAVOR_LEN)
// Get stomping preferences.
stomppref = S["stomp_pref"]
/datum/preferences/proc/splurt_character_pref_save(savefile/S) //TODO: modularize our other savefile edits... maybe?
//Character directory
@@ -18,6 +20,9 @@
WRITE_FILE(S["directory_erptag"], directory_erptag)
WRITE_FILE(S["directory_ad"], directory_ad)
// Stomping preferences.
WRITE_FILE(S["stomp_pref"], stomppref)
/datum/preferences/update_preferences(current_version, savefile/S)
. = ..()
if(current_version < 57.01) //a