RynthSuite as of 2026-12-02 (internal 152e13d): release 2026.12.1.1
This commit is contained in:
parent
e8e4228d15
commit
6b5a9c7e99
65 changed files with 3920 additions and 237 deletions
|
|
@ -179,7 +179,8 @@ public sealed partial class RynthAiPlugin
|
|||
|
||||
/// <summary>A Mag-Tools / VTank option RynthAi maps, or one a meta has stored (an unknown name reads as 0).</summary>
|
||||
private bool OptionKnown(string optName)
|
||||
=> MtOptionMap.ContainsKey(optName) || _metaManager?.Expressions?.Options.ContainsKey(optName) == true;
|
||||
=> MtOptionMap.ContainsKey(optName) || MtSpecialOptions.Contains(optName)
|
||||
|| _metaManager?.Expressions?.Options.ContainsKey(optName) == true;
|
||||
|
||||
/// <summary>
|
||||
/// After /mt opt set (and /ub opt set): the option's value now. Bools read back as 1/0; asked as
|
||||
|
|
@ -191,13 +192,13 @@ public sealed partial class RynthAiPlugin
|
|||
bool askedBool = asked.ToLowerInvariant() is "true" or "false" or "on" or "off";
|
||||
if (askedBool && now is "1" or "0") now = now == "1" ? "True" : "False";
|
||||
ReplyOk($"[RynthAi] {optName} = {now}"
|
||||
+ (MtOptionMap.ContainsKey(optName) ? "" : " (not an option RynthAi maps: kept only for metas to read)"));
|
||||
+ (MtOptionMap.ContainsKey(optName) || MtSpecialOptions.Contains(optName) ? "" : " (not an option RynthAi maps: kept only for metas to read)"));
|
||||
}
|
||||
|
||||
/// <summary>The /mt verbs RynthAi takes, for the usage line.</summary>
|
||||
private const string MtVerbList = "opt, combatstate, face, cast[p], use[i|l][p], select[p], give[p], loot[p], drop[p], "
|
||||
+ "equip[p], dequip[p], fellow, logout, quit, send, jump, trade, vendor, autopack, dumpspells, click, get xy, "
|
||||
+ "cursor, movement, strafe, client, config, test";
|
||||
+ "cursor, movement, strafe, client, config, attack_melee, test";
|
||||
|
||||
/// <summary>How to use a /mt (or, with <paramref name="prefix"/> "/ub", a translated /ub) verb; null when it isn't one.</summary>
|
||||
private static string? MtVerbUsage(string verb, string prefix) => verb switch
|
||||
|
|
@ -257,8 +258,8 @@ public sealed partial class RynthAiPlugin
|
|||
["lootnearbychests"] = "LootNearbyChests", // Settings > Looting > Loot Nearby Chests
|
||||
["dooropenrange"] = "OpenDoorRange",
|
||||
["autofellowmanagement"] = "AutoFellowMgmt",
|
||||
["switchwandstodebuff"] = "UseDispelItems",
|
||||
["lootonlyrarecorpses"] = "MineOnly",
|
||||
// switchwandstodebuff: not UseDispelItems (it turned dispel items on); kept for metas to read back (2026-12-01).
|
||||
["lootonlyrarecorpses"] = "LootOnlyRareCorpses", // was MineOnly, which nothing reads (2026-12-01 command audit)
|
||||
// VTank-meta migration aliases (mirror of MetaManager.VtOptionMap so options
|
||||
// set via /ub opt / /mt opt resolve the same as /vt opt set).
|
||||
["autocram"] = "EnableAutocram",
|
||||
|
|
@ -299,10 +300,45 @@ public sealed partial class RynthAiPlugin
|
|||
["autotrade.think"] = "AutoTradeThink",
|
||||
["autotrade.onlyfrommainpack"] = "AutoTradeOnlyFromMainPack",
|
||||
["autotrade.autoaccept"] = "AutoTradeAutoAccept",
|
||||
// 2026-12-01 command audit: UtilityBelt and Mag-Tools options with the same RynthAi setting, which
|
||||
// were only kept for metas to read.
|
||||
["inventorymanager.autocram"] = "EnableAutocram", // UB: cram items into side packs
|
||||
["inventorymanager.autostack"] = "EnableAutostack", // UB: stack items
|
||||
["autobuysell.enabled"] = "AutoVendorEnabled", // Mag-Tools' vendor buy/sell on open (UB AutoVendor grew from it)
|
||||
["autobuysell.testmode"] = "AutoVendorTestMode",
|
||||
["autotradeadd.enabled"] = "AutoTradeEnabled", // Mag-Tools: add a profile's items when a trade opens
|
||||
["looting.autolootchests"] = "LootChestsMacroOff", // Mag-Tools: a chest you open is looted by the loot profile
|
||||
["looting.autolootmycorpse"] = "LootOwnCorpse", // Mag-Tools: your own corpse is emptied
|
||||
["inventorymanagement.aetheriarevealer"] = "UnboxAetheriaWhenIdle", // reveal coalesced aetheria
|
||||
["iteminfoonident.enabled"] = "ItemInfoOnSelect", // RynthAi's item info is Mag-Tools' (MagItemDescriber)
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Options set by hand below, not through the settings map: Mag-Tools' Tinkering.AutoClickYes ("Auto Click
|
||||
/// Yes on 100%") is RynthAi's Auto-confirm crafting at 100 percent (2026-12-01 command audit).
|
||||
/// </summary>
|
||||
private static readonly HashSet<string> MtSpecialOptions = new(StringComparer.OrdinalIgnoreCase) { "tinkering.autoclickyes" };
|
||||
|
||||
private bool TrySetMtSpecialOption(string optName, string value)
|
||||
{
|
||||
if (!MtSpecialOptions.Contains(optName)) return false;
|
||||
LegacyUiSettings? s = _dashboard?.Settings;
|
||||
if (s == null) return true;
|
||||
bool on = value is "1" || value.Equals("true", StringComparison.OrdinalIgnoreCase);
|
||||
bool off = value is "0" || value.Equals("false", StringComparison.OrdinalIgnoreCase);
|
||||
if (on) { s.AutoConfirmCraft = true; s.AutoConfirmCraftPercent = 100; }
|
||||
else if (off) s.AutoConfirmCraft = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private string? GetMtSpecialOption(string optName)
|
||||
=> MtSpecialOptions.Contains(optName) && _dashboard?.Settings is { } s
|
||||
? (s.AutoConfirmCraft && s.AutoConfirmCraftPercent >= 100 ? "1" : "0")
|
||||
: null;
|
||||
|
||||
private string? GetOptionValue(string optName)
|
||||
{
|
||||
if (GetMtSpecialOption(optName) is string special) return special;
|
||||
if (MtOptionMap.TryGetValue(optName, out string? raName))
|
||||
{
|
||||
var map = _metaManager?.Expressions?.BuildSettingsMapPublic();
|
||||
|
|
@ -325,6 +361,7 @@ public sealed partial class RynthAiPlugin
|
|||
_ => optVal
|
||||
};
|
||||
|
||||
if (TrySetMtSpecialOption(optName, value)) return;
|
||||
if (MtOptionMap.TryGetValue(optName, out string? raName))
|
||||
{
|
||||
var map = _metaManager?.Expressions?.BuildSettingsMapPublic();
|
||||
|
|
|
|||
Loading…
Reference in a new issue