From 1dfca2a73a30da0c28e478ba098540a79da7df6d Mon Sep 17 00:00:00 2001 From: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Date: Sun, 14 Nov 2021 15:38:09 -0500 Subject: [PATCH] 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 --- code/modules/client/preferences_savefile.dm | 4 +--- .../code/modules/client/preferences/tgui_prefs_migration.dm | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index c952fcee525..35e32d86a43 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -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() diff --git a/modular_skyrat/master_files/code/modules/client/preferences/tgui_prefs_migration.dm b/modular_skyrat/master_files/code/modules/client/preferences/tgui_prefs_migration.dm index 4ef7e2c4657..461b51c95fe 100644 --- a/modular_skyrat/master_files/code/modules/client/preferences/tgui_prefs_migration.dm +++ b/modular_skyrat/master_files/code/modules/client/preferences/tgui_prefs_migration.dm @@ -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 :)