Implements opt-out system of periodic tips to be sent to players

This commit is contained in:
Runa Dacino
2023-02-10 14:34:31 +01:00
parent 6db2420b96
commit d05029a1cd
7 changed files with 161 additions and 2 deletions
@@ -368,6 +368,12 @@ var/list/_client_preferences_by_type
enabled_description = "Hear"
disabled_description = "Silent"
/datum/client_preference/player_tips
description = "Receive Tips Periodically"
key = "RECEIVE_TIPS"
enabled_description = "Enabled"
disabled_description = "Disabled"
/********************
* Staff Preferences *
********************/
+12 -1
View File
@@ -119,4 +119,15 @@
SScharacter_setup.queue_preferences_save(prefs)
feedback_add_details("admin_verb", "TSoundMentorhelps")
feedback_add_details("admin_verb", "TSoundMentorhelps")
/client/verb/toggle_player_tips()
set name = "Toggle Receiving Player Tips"
set category = "Preferences"
set desc = "When toggled on, you receive tips periodically on roleplay and gameplay."
var/pref_path = /datum/client_preference/player_tips
toggle_preference(pref_path)
to_chat(src, "You are [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] periodically receiving advice on gameplay and roleplay.")