diff --git a/code/modules/resleeving/infocore_records.dm b/code/modules/resleeving/infocore_records.dm index 0f16a2b3b7..5b77619e06 100644 --- a/code/modules/resleeving/infocore_records.dm +++ b/code/modules/resleeving/infocore_records.dm @@ -60,6 +60,11 @@ nif_software = nifsofts nif_savedata = M.nif.save_data.Copy() + //CHOMPEdit Start - Preference for Automatic transcore notifications + if(istype(M,/mob) && !M.is_preference_enabled(/datum/client_preference/autotranscore)) + do_notify = FALSE + //CHOMPEdit End + last_update = world.time if(add_to_db) diff --git a/modular_chomp/code/modules/client/preference_setup/global/setting_datums.dm b/modular_chomp/code/modules/client/preference_setup/global/setting_datums.dm index 9d3d3b34bb..416ac2ea70 100644 --- a/modular_chomp/code/modules/client/preference_setup/global/setting_datums.dm +++ b/modular_chomp/code/modules/client/preference_setup/global/setting_datums.dm @@ -2,4 +2,10 @@ description ="Random emote pitch" key = "EMOTE_VARY" enabled_description = "Will be Random" - disabled_description = "Will not be Random" \ No newline at end of file + disabled_description = "Will not be Random" + +/datum/client_preference/autotranscore + description = "Automatic Transcore Notification" + key = "AUTOTRANSCORE" + enabled_description = "Automatic notification" + disabled_description = "No automatic notification" diff --git a/modular_chomp/code/modules/client/preferences.dm b/modular_chomp/code/modules/client/preferences.dm index dca804f0d8..887baa7bbe 100644 --- a/modular_chomp/code/modules/client/preferences.dm +++ b/modular_chomp/code/modules/client/preferences.dm @@ -12,3 +12,18 @@ SScharacter_setup.queue_preferences_save(prefs) feedback_add_details("admin_verb","TRandomEmotePitch") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + +/client/verb/toggle_autotranscore() + set name = "Toggle Automatic Transcore Notification" + set category = "Preferences" + set desc = "Toggles whether or not your death with a backup implant will automatically trigger a transcore notification after a few minutes." + + var/pref_path = /datum/client_preference/autotranscore + + toggle_preference(pref_path) + + to_chat(src, "Your death with a backup implant will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] trigger an automatic transcore notification.") + + SScharacter_setup.queue_preferences_save(prefs) + + feedback_add_details("admin_verb","TAutoTranscore") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!