[MIRROR] porting healthbars from roguestar + disassemble mat fixes (#7649)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-01-31 09:55:21 -07:00
committed by GitHub
parent 447d6ae3a3
commit 7f4274a2d8
13 changed files with 272 additions and 11 deletions

View File

@@ -344,6 +344,12 @@ var/list/_client_preferences_by_type
enabled_description = "On"
disabled_description = "Off"
/datum/client_preference/vore_health_bars
description = "Vore Health Bars"
key = "VORE_HEALTH_BARS"
enabled_description = "Enabled"
disabled_description = "Disabled"
/datum/client_preference/runechat_mob
description = "Runechat (Mobs)"
key = "RUNECHAT_MOB"

View File

@@ -481,6 +481,19 @@ CHOMPRemove. Bundled voice sounds into emote/whisper/subtle. Going this extra le
feedback_add_details("admin_verb","TSubtleSounds")
*/
/client/verb/toggle_vore_health_bars()
set name = "Toggle Vore Health Bars"
set category = "Preferences"
set desc = "Toggle the display of vore related health bars"
var/pref_path = /datum/client_preference/vore_health_bars
toggle_preference(pref_path)
SScharacter_setup.queue_preferences_save(prefs)
to_chat(src, "Vore related health bars - [(is_preference_enabled(/datum/client_preference/vore_health_bars)) ? "Enabled" : "Disabled"]")
feedback_add_details("admin_verb","TVoreHealthBars")
// Not attached to a pref datum because those are strict binary toggles
/client/verb/toggle_examine_mode()
set name = "Toggle Examine Mode"