Parse Dungeon Reward Coupon & Npc Stat Factor By Player Count#67
Conversation
📝 WalkthroughWalkthroughThis PR adds parsing support for the ChangesDungeonRewardCoupon Table Parsing
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@Maple2.File.Parser/TableParser.cs`:
- Around line 1642-1651: The ParseDungeonRewardCoupon method currently hardcodes
the path "table/na/dungeonrewardcoupon.xml"; change it to use the locale
variable (e.g., $"table/{locale}/dungeonrewardcoupon.xml") when calling
xmlReader.GetString so other locales are honored; additionally add the same
fallback logic used in other parsers (check for the locale file and fall back to
"na" if missing) around the xmlReader.GetString call to mirror behavior in
methods like the one at line ~347, keeping the rest of the method
(Sanitizer.RemoveSpaces, XmlReader.Create,
dungeonRewardCouponSerializer.Deserialize, and the yield loop) unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 32becbe9-333f-4e77-bd87-d0e5abe6b2e4
📒 Files selected for processing (4)
Maple2.File.Parser/Maple2.File.Parser.csprojMaple2.File.Parser/TableParser.csMaple2.File.Parser/Xml/Table/DungeonRewardCoupon.csMaple2.File.Tests/TableParserTest.cs
Summary by CodeRabbit
Release Notes
New Features
Tests
Chores