forked from kOchirasu/Maple2.File
-
Notifications
You must be signed in to change notification settings - Fork 9
Parse Dungeon Reward Coupon & Npc Stat Factor By Player Count #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AngeloTadeucci
merged 3 commits into
MS2Community:master
from
Zintixx:Dungeon-Reward-Coupon
May 13, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| using System.Xml.Serialization; | ||
|
|
||
| namespace Maple2.File.Parser.Xml.Table; | ||
|
|
||
| // ./data/xml/table/na/dungeonrewardcoupon.xml | ||
| [XmlRoot("ms2")] | ||
| public class DungeonRewardCouponRoot { | ||
| [XmlElement] public List<DungeonRewardCoupon> dungeonRewardCoupon; | ||
| } | ||
|
|
||
| public class DungeonRewardCoupon { | ||
| [XmlAttribute] public int id; | ||
| [XmlAttribute] public string ticketTag; | ||
| [XmlAttribute] public int baseItemID; | ||
| [XmlAttribute] public int maxExtraCount; | ||
| [XmlElement] public List<DungeonRewardBaseRate> baseRate; | ||
| } | ||
|
|
||
| public class DungeonRewardBaseRate { | ||
| [XmlAttribute] public int v; | ||
| } |
24 changes: 24 additions & 0 deletions
24
Maple2.File.Parser/Xml/Table/Server/NpcStatFactorByPlayerCount.cs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| using System.Xml.Serialization; | ||
|
|
||
| namespace Maple2.File.Parser.Xml.Table.Server; | ||
|
|
||
| // ./data/server/table/Server/npcStatFactorByPlayerCount.xml | ||
| [XmlRoot("ms2")] | ||
| public class NpcStatFactorByPlayerCountRoot { | ||
| [XmlElement] public List<NpcStatFactorByPlayerCount> PlayerCountFactor; | ||
| } | ||
|
|
||
| public partial class NpcStatFactorByPlayerCount { | ||
| [XmlAttribute] public int factorID; | ||
| [XmlAttribute] public int @class; | ||
| [XmlAttribute] public int playerCount; | ||
| [XmlAttribute] public float hpRate; | ||
| [XmlAttribute] public float papRate; | ||
| [XmlAttribute] public int papValue; | ||
| [XmlAttribute] public float mapRate; | ||
| [XmlAttribute] public int mapValue; | ||
| [XmlAttribute] public float nddRate; | ||
| [XmlAttribute] public int nddValue; | ||
| [XmlAttribute] public float capRate; | ||
| [XmlAttribute] public int capValue; | ||
| } |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.