mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
Implements opt-out system of periodic tips to be sent to players
This commit is contained in:
@@ -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 *
|
||||
********************/
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user