Merge pull request #15473 from Runa-Dacino/ghostears

Adds a preference to NOT see subtles/whispers even if sender is OK with it or if admin
This commit is contained in:
Heroman3003
2023-10-26 04:19:41 +10:00
committed by GitHub
6 changed files with 37 additions and 8 deletions
@@ -113,6 +113,13 @@ var/list/_client_preferences_by_type
enabled_description = "Visible"
disabled_description = "Hidden"
enabled_by_default = FALSE
/datum/client_preference/ghost_see_whisubtle
description = "See subtles/whispers as ghost"
key = "GHOST_SEE_WHISUBTLE"
enabled_description = "Visible"
disabled_description = "Hidden"
enabled_by_default = TRUE
//VOREStation Add End
/datum/client_preference/weather_sounds
description ="Weather sounds"
@@ -373,7 +380,7 @@ var/list/_client_preferences_by_type
key = "RECEIVE_TIPS"
enabled_description = "Enabled"
disabled_description = "Disabled"
/datum/client_preference/pain_frequency
description = "Pain Messages Cooldown"
key = "PAIN_FREQUENCY"
+15
View File
@@ -88,6 +88,21 @@
feedback_add_details("admin_verb","TWhisubtleVis") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggle_ghost_privacyvision()
set name = "Toggle Ghost Private Eyes/ears"
set category = "Preferences"
set desc = "Toggles your ability to see subtles/whispers. Overrides admin status. Respects Ghost Privacy"
var/pref_path = /datum/client_preference/ghost_see_whisubtle
toggle_preference(pref_path)
to_chat(src, "As a ghost, you will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] hear subtles/whispers made by players.")
SScharacter_setup.queue_preferences_save(prefs)
feedback_add_details("admin_verb","TGhostSeeWhisSubtle") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/verb/toggle_capture_crystal()
set name = "Toggle Catchable"
set category = "Preferences"