Warlock: migrate strategy controls to Chatless bridge - #52
Conversation
Migrates Warlock Stones, Pets, Curses and Soulstones from direct chat commands to the Chatless bridge strategy mutation path. Also removes invalid/unused Warlock controls, compacts the UI layout, and preserves manual Playerbots diagnostic commands such as nc ?, co ? and ss ?. Playerbots remains unchanged and read-only.
📝 WalkthroughWalkthroughThe PR updates Warlock selectors to use combined bridge-aware actions and adds a structured weapon-enchant diagnostic flow through ChangesWarlock bridge-backed selectors
Weapon-enchant diagnostics
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant DebugCommand
participant MultiBotComm
participant Bridge
participant MultiBotHandler
DebugCommand->>MultiBotComm: request weapon-enchant debug
MultiBotComm->>Bridge: send WEAPON_ENCHANT request
Bridge-->>MultiBotComm: return validated response
MultiBotComm->>MultiBotHandler: deliver parsed result or error
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68ec4c8a9e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
🧹 Nitpick comments (1)
Core/MultiBotEngine.lua (1)
531-535: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueClarify the multi-return API contract.
MultiBot.ActionToTargetOrGroupreachesreturn MultiBot.ActionToTarget(...)when targeting a unit. Call sites still treat it as a simple button action and do not consume the transport value, while the function returns(true, "bridge")only in the targeted bot path and singletruevalues in group paths. Either document and preserve the two-value return contract, or normalize all code paths to the value form callers can handle.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@Core/MultiBotEngine.lua` around lines 531 - 535, Normalize the return contract of MultiBot.ActionToTargetOrGroup so every path returns the single action-success value expected by its callers. Update the targeted-unit path that delegates to MultiBot.ActionToTarget and remove or consume its transport value, while preserving successful group behavior and existing failure results.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@Core/MultiBotEngine.lua`:
- Around line 531-535: Normalize the return contract of
MultiBot.ActionToTargetOrGroup so every path returns the single action-success
value expected by its callers. Update the targeted-unit path that delegates to
MultiBot.ActionToTarget and remove or consume its transport value, while
preserving successful group behavior and existing failure results.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: b3aa15a6-3007-4f4a-ae0f-d4bd70c4159b
📒 Files selected for processing (6)
Core/MultiBotComm.luaCore/MultiBotEngine.luaCore/MultiBotHandler.luaREADME.mdStrategies/MultiBotWarlock.luadocs/ROADMAP.md
🚧 Files skipped from review as they are similar to previous changes (1)
- Strategies/MultiBotWarlock.lua
Migrates Warlock Stones, Pets, Curses and Soulstones from direct chat commands to the Chatless bridge strategy mutation path. Also removes invalid/unused Warlock controls, compacts the UI layout, and preserves manual Playerbots diagnostic commands such as nc ?, co ? and ss ?. Playerbots remains unchanged and read-only.
Summary by CodeRabbit
New Features
/mbdebug enchant [bot]to request weapon-enchant diagnostics.Improvements
Removed