mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #5700 from CHOMPStation2/upstream-merge-14456
[MIRROR] Implements periodic tips for (new) players!
This commit is contained in:
@@ -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 *
|
||||
********************/
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user