Merge pull request #5700 from CHOMPStation2/upstream-merge-14456

[MIRROR] Implements periodic tips for (new) players!
This commit is contained in:
Razgriz
2023-02-12 19:04:32 -07:00
committed by GitHub
8 changed files with 233 additions and 0 deletions

View File

@@ -370,6 +370,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 *
********************/

View File

@@ -124,3 +124,14 @@
SScharacter_setup.queue_preferences_save(prefs)
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.")