Resetting auto dementor preference to FALSE for everyone (#9446)

* Allows any character to use the body type setting regardless of gender

* Feex

* Another feex

* Avoiding savefile corruption

* Auto-dementor pref fix

* My brain is very big sometimes

Co-authored-by: Thunder12345 <Thunder12345@users.noreply.github.com>
This commit is contained in:
GoldenAlpharex
2021-11-14 15:38:09 -05:00
committed by GitHub
co-authored by Thunder12345
parent 43a3bf4885
commit 1dfca2a73a
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -102,9 +102,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
if (current_version < 42)
// migrate_body_types(savefile) // SKYRAT EDIT - This'll fuck up savefiles
return // SKYRAT EDIT - Linters won't shut up otherwise, changing this in the next PR.
return // SKYRAT EDIT - Linters won't shut up otherwise
migrate_mentor() // SKYRAT EDIT - Make mentors alive again
/// checks through keybindings for outdated unbound keys and updates them
/datum/preferences/proc/check_keybindings()
@@ -98,3 +98,6 @@ GLOBAL_LIST_INIT(bodyparts_to_convert, list("body_markings", \
to_chat(parent, examine_block(span_greentext("Preference migration successful! You may safely interact with the preferences menu.")))
tgui_prefs_migration = TRUE
WRITE_FILE(S["tgui_prefs_migration"], tgui_prefs_migration)
/datum/preferences/proc/migrate_mentor()
write_preference(GLOB.preference_entries[/datum/preference/toggle/admin/auto_dementor], FALSE) // Someone thought it was a good idea to make it start at true :)