Repository navigation
Conversation
Ganymède now copies chains such as '/zaap 5 -18 ; /zaap 5 -18 ; /travel 3 -17'. The parser only accepted one trailing /travel, so any other leg was rejected with BadArguments. Accept any number of '; /zaap x y' and '; /travel x y' legs. Anything else after a ';' is still refused, and the 64 character cap still bounds the chain. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #20
Problem Ganymède now copies chains such as:
/zaap 5 -18 ; /zaap 5 -18 ; /travel 3 -17parse_zaaponly accepted one trailing/travel, so any further/zaapleg was rejected withBadArguments { verb: Zaap }and nothing reached the game. This shows up in the log ascommand not relayed reason=Unparsed { reason: BadArguments { verb: Zaap } }. ## Change -GameCommand::Zaapnow carries a list of legs (Leg::Zaap/Leg::Travel) instead of a single optional/travel. - Any number of; /zaap x yand; /travel x ylegs are accepted. - The parser stays closed: anything else after a;(empty segment, other verbs, item names) is stillBadArguments, and the 64 character cap still bounds the chain. - Tests updated: the two cases that used to be rejected on purpose are now accepted, plus a new round-trip test with the command above. ## Testingcargo test --workspace(26 core tests pass). Not tested against a live Dofus client. 🤖 Generated with Claude Code