Repository navigation
Move to NosCore.Packets 56 and send every mate a suctl names - #3635
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
No actionable comments were generated in the recent review. WalkthroughThe centrally managed networking and packet package versions increased. ChangesMate command handling
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn
The client's suctl starts with its current map id, then the number of orders, then each mate with its target. It was read as one mate and a cast id, so only the first mate of an order went in. The handler now sends each mate named at its own target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn
|
Local run before the rebase onto #3634 (which only adds the Algorithm 8.1.0 line next to these): build 0 errors; PacketHandlers 1003/1003, GameObject 2816/2816, Core 34/34, WebApi 11/11, end-to-end 329/329. Generated by Claude Code Generated by Claude Code |
1022cba to
f54ccb7
Compare
Checked against the lab server, before and after
Not exercised: the browser client sending an order on this branch, and the client itself putting two mates in one order. The two-mate case comes from the bot. Generated by Claude Code Generated by Claude Code |
What
Move to NosCore.Packets 56.0.0 and NosCore.Networking 12.0.0. Packets 56 reshapes the client
suctlpacket to match all 5,998suctllines in the packet traces (NosCoreIO/NosCore.Packets#670):suctl <map id> <amount> {<mate id> <target type> <target id>} × amount. The first field is the client's current map, not a cast id. A single order can name up to five mates. Networking 12 is built against Packets 56.Send every mate a suctl names at its target. The handler read the line as one mate and a cast id, so only the first mate of a multi-mate order went in. It now sends each mate at its own target, keeping the existing rule that only a monster can be a target. Each mate goes through
MateControlService.AttackAsync, which since #3633 uses the mate's basic attack.Tests
SuCtlPacketHandlerTests.OneOrderSendsEveryMateItNames: one order naming the pet and the escort makes both hit the monster.TheMapIdLeadingTheOrderPicksNoSkill(renamed fromTheFirstFieldOfTheOrderPicksNoSkill): a map id matching a pet skill's cast id still means a basic attack.MatePacketDeserializationTestsand the end-to-endPetTestsorder now use the new packet shape.dotnet build NosCore.sln: 0 errors. The unit and end-to-end results follow in a comment once the local run finishes.In the client
Not checked in a client yet. With two mates out (a pet and a partner), select both and send them at a monster: both should attack it. Before, only the first one named did.
Generated by Claude Code
Summary by CodeRabbit