Parse GuildQuestRewardFactor#58
Conversation
📝 WalkthroughWalkthroughThis PR introduces parsing support for a new XML table ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 the current code and only fix it if needed.
Inline comments:
In `@Maple2.File.Parser/Xml/Table/GuildQuestRewardFactor.cs`:
- Line 18: The XmlAttribute field GuildCoinFactor in class
GuildQuestRewardFactor uses PascalCase which won't match the existing camelCase
XML attribute "guildCoinFactor" and causes silent deserialization to leave the
value at 0; fix it by either renaming the field to guildCoinFactor to match the
rest of the attributes (guildExpFactor, userExpFactor, guildFundFactor,
userMesoFactor) or add an explicit mapping with [XmlAttribute(AttributeName =
"guildCoinFactor")] on GuildCoinFactor so the XML deserializer binds correctly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 0983a6b1-5365-4bc6-a13d-cb05dd2bde22
📒 Files selected for processing (4)
Maple2.File.Parser/Maple2.File.Parser.csprojMaple2.File.Parser/TableParser.csMaple2.File.Parser/Xml/Table/GuildQuestRewardFactor.csMaple2.File.Tests/TableParserTest.cs
Summary by CodeRabbit
New Features
Chores