diff --git a/Changelog/2026-10-07-release-2026.10.5.15-loot-add-t11-checkbox.md b/Changelog/2026-10-07-release-2026.10.5.15-loot-add-t11-checkbox.md new file mode 100644 index 0000000..1dcf913 --- /dev/null +++ b/Changelog/2026-10-07-release-2026.10.5.15-loot-add-t11-checkbox.md @@ -0,0 +1,32 @@ +# RynthCore 2026.10.5.15 — "Include T11 attributes" in the Add to loot profile popup + +**Date:** 2026-10-07 +**Branch:** `feat/loot-add-t11-checkbox` (from `fix/restore-sk-features` 5926a46) +**Previous release:** 2026.10.5.14 +**Pairs with:** RynthAi 0.5.21-legacy-ui (RynthSuite `feat/loot-add-t11-attributes`) + +## What's new + +The "Add to loot profile" popup has a new **Include T11 attributes** checkbox under Match. The +popup opens from the Inventory panel's right-click menu, or from "Add selected item" in the Loot +Editor. + +- When checked, RynthAi adds the item's T11 conditions to the rule: tier, weapon grade, + damage %, every modifier, slot special and Cast on Strike. Each must be at least as good as + the clicked item's. +- It works with every match mode, and the preview updates as soon as it is toggled. +- The tooltip lists what is added, and why Can Wield and Zone Locked are not: they depend on + the character and on where the item was assessed. +- "(not a T11 item)" shows next to the checkbox when the item isn't T11 gear. + +## Compatibility + +- `LootEditItemRequestDto.IncludeT11` is new; an older RynthAi ignores it. +- `LootEditItemDraftDto.IncludeT11` and `IsT11` are new; an older RynthAi never sends them, so + they read false. With an older RynthAi the checkbox has no effect, and "(not a T11 item)" + shows for every item. + +## Files + +- `src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs` +- `src/RynthCore.Engine/UI/Data/LootEditData.cs` diff --git a/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs b/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs index 34b14fc..0c77514 100644 --- a/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs +++ b/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs @@ -7,6 +7,9 @@ // // item its name and the profile the rule goes to // match name + class (default), name only, items like this +// T11 "Include T11 attributes": also require the item's T11 tier, +// grade, damage %, modifiers, slot special and Cast on Strike, +// each at least this item's (any match; 2026-10-07) // action Keep, Keep # (with the count), Salvage, Sell, Read // name the rule's name (empty: RynthAi's default, "Keep Copper Pea") // preview the rule in words, where it goes in the list and why, notes @@ -48,6 +51,7 @@ internal sealed class LootAddDialog // What the popup asks for (0 / -1 = RynthAi's default). private int _match, _action, _keep = -1; + private bool _includeT11; private readonly byte[] _name = new byte[128]; private int _keepEdit = 1; @@ -88,6 +92,7 @@ internal sealed class LootAddDialog _match = 0; _action = 0; _keep = -1; + _includeT11 = false; Array.Clear(_name); _draft = null; _adding = false; @@ -113,7 +118,7 @@ internal sealed class LootAddDialog Item = new LootEditItemRequestDto { ItemId = _itemId, Match = _match, Action = _action, KeepCount = _keep, - RuleName = Utf8(_name).Trim(), ToOpenProfile = _toOpenProfile, Seq = _seq, + RuleName = Utf8(_name).Trim(), ToOpenProfile = _toOpenProfile, IncludeT11 = _includeT11, Seq = _seq, }, }); } @@ -255,6 +260,24 @@ internal sealed class LootAddDialog if (ImGuiNET.ImGui.IsItemHovered()) ImGuiNET.ImGui.SetTooltip(MatchTips[i]); } + // T11 attributes. Shown for every item: a non-T11 item answers with a note saying so. + bool t11 = _includeT11; + if (ImGuiNET.ImGui.Checkbox("Include T11 attributes##la_t11", ref t11)) + { + _includeT11 = t11; + changed = true; + } + if (ImGuiNET.ImGui.IsItemHovered()) + ImGuiNET.ImGui.SetTooltip( + "Also require this item's T11 tier, weapon grade, damage %, every modifier, slot special\n" + + "and Cast on Strike, each at least as good as this one. Works with any match.\n" + + "Not added: Can Wield (depends on your character) and Zone Locked (depends on where it was assessed)."); + if (!d.IsT11) + { + ImGuiNET.ImGui.SameLine(); + ImGuiNET.ImGui.TextDisabled("(not a T11 item)"); + } + // Action. ImGuiNET.ImGui.TextDisabled("Action:"); for (int i = 0; i < ActionIds.Length; i++) diff --git a/src/RynthCore.Engine/UI/Data/LootEditData.cs b/src/RynthCore.Engine/UI/Data/LootEditData.cs index 7148ea5..3a89213 100644 --- a/src/RynthCore.Engine/UI/Data/LootEditData.cs +++ b/src/RynthCore.Engine/UI/Data/LootEditData.cs @@ -139,6 +139,8 @@ internal sealed class LootEditItemRequestDto public string RuleName { get; set; } = string.Empty; /// True: the profile open in the Loot Editor; false: the one RynthAi loots with. public bool ToOpenProfile { get; set; } + /// Also require the item's T11 attributes (added 2026-10-07; an older RynthAi ignores it). + public bool IncludeT11 { get; set; } public int Seq { get; set; } } @@ -157,6 +159,10 @@ internal sealed class LootEditItemDraftDto public bool TargetInUse { get; set; } public string Format { get; set; } = string.Empty; public int Match { get; set; } + /// The rule includes the item's T11 attributes (added 2026-10-07; false from an older RynthAi). + public bool IncludeT11 { get; set; } + /// The item is T11 gear (added 2026-10-07; false from an older RynthAi). + public bool IsT11 { get; set; } public int Action { get; set; } public int KeepCount { get; set; } public string RuleName { get; set; } = string.Empty;