Drop the Voice-only gag method from the creation menu

It produced the exact same trigger flags as Full gag (both just set
OmitFromOutput - the "still spoken by screen reader" distinction was
never actually implemented differently), so it was a redundant choice.
Creation now only offers Full gag and Substitute. Kept the "voice"
case in add_trigger_for_gag so any gag already saved with that method
still loads and behaves the same. Updated the readme.
This commit is contained in:
OlegTheSnowman
2026-07-11 00:46:56 +03:00
parent f7477dc4c3
commit ac4a0235e2
2 changed files with 6 additions and 7 deletions

View File

@@ -126,7 +126,11 @@ function add_trigger_for_gag(gag)
if gag.method == "all" then
flags = flags + 4 -- OmitFromOutput
elseif gag.method == "voice" then
flags = flags + 4 -- OmitFromOutput: hidden from screen, but MushReader still speaks it
-- "Voice only" was removed from the creation menu (it produced the
-- exact same trigger flags as "all" anyway - the distinction was
-- never actually implemented). Kept here so any gag saved with this
-- method before the change still loads and behaves the same.
flags = flags + 4 -- OmitFromOutput
elseif gag.method == "substitute" then
flags = flags + 4 -- OmitFromOutput: hide the original line
script_name = "substitute_trigger"
@@ -255,14 +259,12 @@ function addnewgag()
sleep(0.2)
-- Prompt 2: Gag method
local m_choices = {
"Voice only - Hide from screen, still spoken by screen reader",
"Full gag - Hide completely from screen and speech",
"Substitute - Replace the matched line with different text"
}
local m_res = utils.choose(
"How should this line be gagged?\n" ..
"\n" ..
"Voice only: The line is hidden from the screen and log, but your screen reader will still read it aloud. Good for information you want to hear but don't need cluttering the screen.\n" ..
"Full gag: The line is completely removed from both the screen and speech. Good for things you never want to see.\n" ..
"Substitute: Replaces the matched line with your own custom text.",
"Step 2 of 3: Choose gag method", m_choices)
@@ -275,9 +277,7 @@ function addnewgag()
local gag_method = ""
local gag_sub = ""
if m_res == "Voice only - Hide from screen, still spoken by screen reader" then
gag_method = "voice"
elseif m_res == "Full gag - Hide completely from screen and speech" then
if m_res == "Full gag - Hide completely from screen and speech" then
gag_method = "all"
elseif m_res == "Substitute - Replace the matched line with different text" then
gag_method = "substitute"