mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #14393 from Runa-Dacino/pain-frequency
Makes cooldown between pain messages a pre-set global preference
This commit is contained in:
committed by
CHOMPStation2
parent
d1d10dcd7d
commit
ebe81811db
@@ -381,6 +381,14 @@ 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"
|
||||
enabled_by_default = FALSE
|
||||
enabled_description = "Extended"
|
||||
disabled_description = "Default"
|
||||
|
||||
|
||||
/********************
|
||||
* Staff Preferences *
|
||||
|
||||
@@ -139,3 +139,14 @@
|
||||
SScharacter_setup.queue_preferences_save(prefs)
|
||||
|
||||
feedback_add_details("admin_verb", "TReceivePlayerTips")
|
||||
|
||||
/client/verb/toggle_pain_frequency()
|
||||
set name = "Toggle Pain Frequency"
|
||||
set category = "Preferences"
|
||||
set desc = "When toggled on, increases the cooldown of pain messages sent to chat for minor injuries"
|
||||
|
||||
var/pref_path = /datum/client_preference/pain_frequency
|
||||
|
||||
toggle_preference(pref_path)
|
||||
|
||||
to_chat(src, "The cooldown between pain messages for minor (under 20/5 injury. Multi-limb injuries are still faster) is now [ (is_preference_enabled(pref_path)) ? "extended" : "default"].")
|
||||
|
||||
Reference in New Issue
Block a user