fix: capacitance retention thresholds were mislabeled 'percent' (-1000..1000) — values are compared to remaining ability charges; relabel to charge(s), range -10..10, rewrite tooltip in plain English (+zh)

This commit is contained in:
2026-10-03 14:07:05 -04:00
parent f41ef1793e
commit 0ba1d73ba4
2 changed files with 25 additions and 23 deletions
@@ -501,8 +501,8 @@ local widgets = {
type = "numeric", type = "numeric",
title = "elite", title = "elite",
default_value = 0, default_value = 0,
range = { -1000, 1000 }, range = { -10, 10 },
unit_text = "percent", unit_text = "charges",
decimals_number = 0, decimals_number = 0,
}, },
{ {
@@ -510,8 +510,8 @@ local widgets = {
type = "numeric", type = "numeric",
title = "special", title = "special",
default_value = 0, default_value = 0,
range = { -1000, 1000 }, range = { -10, 10 },
unit_text = "percent", unit_text = "charges",
decimals_number = 0, decimals_number = 0,
}, },
{ {
@@ -519,8 +519,8 @@ local widgets = {
type = "numeric", type = "numeric",
title = "boss", title = "boss",
default_value = 0, default_value = 0,
range = { -1000, 1000 }, range = { -10, 10 },
unit_text = "percent", unit_text = "charges",
decimals_number = 0, decimals_number = 0,
}, },
} }
@@ -626,8 +626,8 @@ local widgets = {
setting_id = "capacitance_retention_breed_threshold", setting_id = "capacitance_retention_breed_threshold",
type = "numeric", type = "numeric",
default_value = 0, default_value = 0,
range = { -1000, 1000 }, range = { -10, 10 },
unit_text = "percent", unit_text = "charges",
decimals_number = 0, decimals_number = 0,
}, },
{ {
@@ -385,21 +385,18 @@ local localization = {
["zh-tw"] = "電容量保留", ["zh-tw"] = "電容量保留",
}, },
capacitance_retention_description = { capacitance_retention_description = {
en = "While the Noospheric Command talent is active, all Servo-Skull Auto-Mark features (including Noospheric Command Boost) are disabled when remaining capacitance drops below the configured threshold.\n\n" .. en = "With the Noospheric Command talent, every Servo-Skull auto-mark costs you one ability charge. This switch tells the mod to stop spending charges when you're running low: once your remaining charges drop below the threshold, all Servo-Skull marking (including Noospheric Command Boost) pauses until you recharge.\n\n" ..
"This threshold supports negative values (including -0):\n" .. "'Remaining charges' = charge count + current bar fraction, e.g. 4.3.\n\n" ..
"Non-negative values are checked directly against remaining capacitance.\n" .. "You can set a separate threshold for elites, specialists and bosses (or single enemies), so the skull can still spend on a boss when it's told to hold back on trash.\n\n" ..
"For negative values, the actual threshold equals maximum ability charges plus the configured value.\n\n" .. "Negative values count down from full charge: if you have 5 max charges, -1 means 'pause below 4', i.e. always keep one charge in reserve.",
"Remaining capacitance is calculated as ability charge count plus current capacitance percentage.", ["zh-cn"] = "装备星语指令天赋后,每次伺服颅骨自动标记都会消耗一次技能充能。开启本项后,当剩余充能低于阈值时,颅骨会停止标记(包括星语指令增强),把电容量留给你自己放技能。\n\n" ..
["zh-cn"] = "当装备星语指令天赋时,若剩余电容低于所选阈值,将禁用所有伺服颅骨自动标记功能,包括星语指令增强。\n\n" .. "“剩余充能”= 充能次数 + 当前电容进度,例如 4.3。\n\n" ..
"本阈值支持设置为负值(含-0):\n" .. "精英、专家、Boss(甚至单个敌人)可分别设置阈值,例如:残血电容量时不对小怪出手,但 Boss 照打不误。\n\n" ..
"阈值为非负数时,直接以剩余电容数值判定。\n" .. "负数表示从满充能倒扣:最大 5 次充能时,-1 即“低于 4 次就暂停”,永远给自己留一发。",
"阈值为负数时,实际阈值等于技能最大充能次数加上设定值。\n\n" .. ["zh-tw"] = "裝備心智網指令天賦後,每次伺服顱骨自動標記都會消耗一次技能充能。開啟本項後,當剩餘充能低於門檻時,顱骨會停止標記(包含心智網指令強化),把電容量留給自己放技能。\n\n" ..
"剩余电容等于技能充能次数加上当前电容百分比。", "「剩餘充能」= 充能次數 + 當前電容進度,例如 4.3。\n\n" ..
["zh-tw"] = "當啟用心智網指令時,若剩餘電容量低於所選門檻,將停用所有伺服顱骨自動標記功能,包含心智網指令強化。\n\n" .. "精英、專家、Boss(甚至單一敵人)可分別設定門檻,例如:電容量不足時不對小怪出手,但 Boss 照打不誤。\n\n" ..
"本門檻支援設定為負值(含-0):\n" .. "負數表示從滿充能倒扣:最大 5 次充能時,-1 即「低於 4 次就暫停」,永遠給自己留一發。",
"門檻為非負數時,直接以剩餘電容量數值判定。\n" ..
"門檻為負數時,實際門檻等於技能最大充能次數加上設定值。\n\n" ..
"剩餘電容量等於技能充能次數加上當前電容量百分比。",
}, },
capacitance_retention_elite_threshold_description = { capacitance_retention_elite_threshold_description = {
en = "Set Capacitance Retention Threshold for elites.", en = "Set Capacitance Retention Threshold for elites.",
@@ -863,6 +860,11 @@ local localization = {
percent = { percent = {
en = "%%", en = "%%",
}, },
charges = {
en = "charge(s)",
["zh-cn"] = "层充能",
["zh-tw"] = "層充能",
},
degree = { degree = {
en = "°", en = "°",
}, },