Items face: "No buff" toggle on shield rows #11
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthCore:items-nobuff-toggle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Depends on: nothing to build or run. Pairs with RynthSuite PR "RynthAi: exclude a listed shield from buffing (noBuff on the Items bridge)".
Companion PR: rynth/RynthSuite#22 (rynth/RynthSuite#22).
What went wrong in play
The Items face had no way to mark a shield "never buff this one". A shield that already carries its buffs kept being buffed, and the Items list offered nothing for it: a shield row's element column only said "Shield".
The fix
ItemsPanel.WeaponEntryreads and writes RynthAi'snoBuff(nullable; omitted from the save when null, so a plugin that predates it keeps its saved value). NewShowsNoBuff: true only for a shield row (Action "Shield") from a plugin that sends the field.ItemsFacedraws a "No buff" toggle in place of the element picker on those rows (lit while excluded, with a tooltip) and saves on click. Weapon rows are unchanged.NoBuff, so it never saves back a stale value.How it was tested
This repo (RynthCore) has no Suite host tests; the new offline check project is
tools\ItemsNoBuffTests(reflection against the engine, no test seam needed). Fromtools\ItemsNoBuffTests:Result: "All 14 checks passed." (exit 0). It builds
RynthCore.Engineas a dependency; the build succeeded. It covers the wire shape RynthAi writes, an older plugin with no field (no toggle, nothing written back), the flipped value going back, and the exact wire namenoBuff.Scope and risk
4 files:
ImGui/Panels/ItemsFace.cs(including one sentence in the header comment),UI/Panels/ItemsPanel.cs, and the new test project (csproj + Program.cs). Risk: UI only; with an older RynthAi no toggle is drawn.🤖 Generated with Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.