Feature: Add auto accept party request from friends and guild members#792
Feature: Add auto accept party request from friends and guild members#792eduardosmaniotto wants to merge 2 commits into
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces significant improvements to the MU Helper system, primarily focusing on automated party management and combat flexibility. By adding new configuration flags, players can now opt-in to automatically accept party requests from friends and guild members. Additionally, the combat logic has been refined to provide better control over attack behavior, and the friend server infrastructure has been updated to support more robust friendship checks and cleanup. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request implements auto-accepting party requests from friends and guild members based on MU Helper settings, introducing the PartyRequestHandler and adding the IsFriendAsync method to the friend server. It also updates the offline combat handler to support basic attack fallback and bow/crossbow range detection, alongside serializing the new configuration flags. A correctness bug was identified in PartyRequestHandler.TryAutoAcceptPartyRequestAsync where a failed party join clears the request state but returns false, leading to a broken manual request dialog fallback; it is recommended to return true once the auto-accept criteria are matched to prevent this fallback.
… after state cleanup
|
Nice features, I like them! Is the client getting updated as well? |
|
The flags already exist on the client but are currently not being used. |
MU Helper: new flags, party auto-accept, combat update
New MU Helper flags —
UseSelfDefense,AutoAcceptFriend,AutoAcceptGuild,FallbackBasicAttackadded to the 257-byte client blob deserialization,IMuHelperSettingsinterface, and model class.Party auto-accept —
PartyRequestHandler.TryAutoAcceptPartyRequestAsyncautomatically accepts party requests when the receiver hasAutoAcceptFriend(checked viaIFriendServer.IsFriendAsync) orAutoAcceptGuild(same guild ID) enabled.CombatHandler — removed buff-based early return.
FallbackBasicAttackflag controls whether basic attack is performed when no skill is configured.Friend server — added
IsFriendAsynctoIFriendServer(in-memory + Dapr).DeleteFriendAsyncnow cleans up both directions (subscribers + persistence).Immediate effect — MU Helper config saves (0xAE packet) re-deserialize
player.MuHelperSettingsso flag changes apply without relog.Tests — 6 party auto-accept tests, CombatHandlerTests updated.