From 0ba1d73ba49ef7ecde943b4d3e2375838e337d03 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 3 Oct 2026 14:07:05 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20capacitance=20retention=20thresholds=20w?= =?UTF-8?q?ere=20mislabeled=20'percent'=20(-1000..1000)=20=E2=80=94=20valu?= =?UTF-8?q?es=20are=20compared=20to=20remaining=20ability=20charges;=20rel?= =?UTF-8?q?abel=20to=20charge(s),=20range=20-10..10,=20rewrite=20tooltip?= =?UTF-8?q?=20in=20plain=20English=20(+zh)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripts/mods/AutoMark/AutoMark_data.lua | 16 +++++----- .../mods/AutoMark/AutoMark_localization.lua | 32 ++++++++++--------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/AutoMark/scripts/mods/AutoMark/AutoMark_data.lua b/AutoMark/scripts/mods/AutoMark/AutoMark_data.lua index 563189d..4dc9524 100644 --- a/AutoMark/scripts/mods/AutoMark/AutoMark_data.lua +++ b/AutoMark/scripts/mods/AutoMark/AutoMark_data.lua @@ -501,8 +501,8 @@ local widgets = { type = "numeric", title = "elite", default_value = 0, - range = { -1000, 1000 }, - unit_text = "percent", + range = { -10, 10 }, + unit_text = "charges", decimals_number = 0, }, { @@ -510,8 +510,8 @@ local widgets = { type = "numeric", title = "special", default_value = 0, - range = { -1000, 1000 }, - unit_text = "percent", + range = { -10, 10 }, + unit_text = "charges", decimals_number = 0, }, { @@ -519,8 +519,8 @@ local widgets = { type = "numeric", title = "boss", default_value = 0, - range = { -1000, 1000 }, - unit_text = "percent", + range = { -10, 10 }, + unit_text = "charges", decimals_number = 0, }, } @@ -626,8 +626,8 @@ local widgets = { setting_id = "capacitance_retention_breed_threshold", type = "numeric", default_value = 0, - range = { -1000, 1000 }, - unit_text = "percent", + range = { -10, 10 }, + unit_text = "charges", decimals_number = 0, }, { diff --git a/AutoMark/scripts/mods/AutoMark/AutoMark_localization.lua b/AutoMark/scripts/mods/AutoMark/AutoMark_localization.lua index 081cdcd..8ea6058 100644 --- a/AutoMark/scripts/mods/AutoMark/AutoMark_localization.lua +++ b/AutoMark/scripts/mods/AutoMark/AutoMark_localization.lua @@ -385,21 +385,18 @@ local localization = { ["zh-tw"] = "電容量保留", }, 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" .. - "This threshold supports negative values (including -0):\n" .. - "Non-negative values are checked directly against remaining capacitance.\n" .. - "For negative values, the actual threshold equals maximum ability charges plus the configured value.\n\n" .. - "Remaining capacitance is calculated as ability charge count plus current capacitance percentage.", - ["zh-cn"] = "当装备星语指令天赋时,若剩余电容低于所选阈值,将禁用所有伺服颅骨自动标记功能,包括星语指令增强。\n\n" .. - "本阈值支持设置为负值(含-0):\n" .. - "阈值为非负数时,直接以剩余电容数值判定。\n" .. - "阈值为负数时,实际阈值等于技能最大充能次数加上设定值。\n\n" .. - "剩余电容等于技能充能次数加上当前电容百分比。", - ["zh-tw"] = "當啟用心智網指令時,若剩餘電容量低於所選門檻,將停用所有伺服顱骨自動標記功能,包含心智網指令強化。\n\n" .. - "本門檻支援設定為負值(含-0):\n" .. - "門檻為非負數時,直接以剩餘電容量數值判定。\n" .. - "門檻為負數時,實際門檻等於技能最大充能次數加上設定值。\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" .. + "'Remaining charges' = charge count + current bar fraction, e.g. 4.3.\n\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" .. + "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.", + ["zh-cn"] = "装备星语指令天赋后,每次伺服颅骨自动标记都会消耗一次技能充能。开启本项后,当剩余充能低于阈值时,颅骨会停止标记(包括星语指令增强),把电容量留给你自己放技能。\n\n" .. + "“剩余充能”= 充能次数 + 当前电容进度,例如 4.3。\n\n" .. + "精英、专家、Boss(甚至单个敌人)可分别设置阈值,例如:残血电容量时不对小怪出手,但 Boss 照打不误。\n\n" .. + "负数表示从满充能倒扣:最大 5 次充能时,-1 即“低于 4 次就暂停”,永远给自己留一发。", + ["zh-tw"] = "裝備心智網指令天賦後,每次伺服顱骨自動標記都會消耗一次技能充能。開啟本項後,當剩餘充能低於門檻時,顱骨會停止標記(包含心智網指令強化),把電容量留給自己放技能。\n\n" .. + "「剩餘充能」= 充能次數 + 當前電容進度,例如 4.3。\n\n" .. + "精英、專家、Boss(甚至單一敵人)可分別設定門檻,例如:電容量不足時不對小怪出手,但 Boss 照打不誤。\n\n" .. + "負數表示從滿充能倒扣:最大 5 次充能時,-1 即「低於 4 次就暫停」,永遠給自己留一發。", }, capacitance_retention_elite_threshold_description = { en = "Set Capacitance Retention Threshold for elites.", @@ -863,6 +860,11 @@ local localization = { percent = { en = "%%", }, + charges = { + en = "charge(s)", + ["zh-cn"] = "层充能", + ["zh-tw"] = "層充能", + }, degree = { en = "°", },