Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Maple2.File.Parser/Maple2.File.Parser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageTags>MapleStory2, File, Parser, m2d, xml</PackageTags>
<!-- Use following lines to write the generated files to disk. -->
<EmitCompilerGeneratedFiles Condition=" '$(Configuration)' == 'Debug' ">true</EmitCompilerGeneratedFiles>
<PackageVersion>2.4.39</PackageVersion>
<PackageVersion>2.4.40</PackageVersion>
<TargetFramework>net8.0</TargetFramework>
<PackageReadmeFile>README.md</PackageReadmeFile>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
5 changes: 5 additions & 0 deletions Maple2.File.Parser/Xml/Table/Server/ItemMergeOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public partial class MergeOption {

public partial class Slot {
[XmlAttribute] public int part = 1;
// The client table nests slots under <mergeStep step="N">; the server file has no such
// level, so a slot names its step here. Retail rows carry none and are all step 1.
[XmlAttribute] public int step = 1;
// Some tables (the 370300xx/370400xx crystals) list their slots here instead of in part.
[M2dArray] public int[] partLimit = Array.Empty<int>();
[XmlAttribute] public long consumeMeso;
[M2dArray] public string[] itemMaterial1 = Array.Empty<string>();
[M2dArray] public string[] itemMaterial2 = Array.Empty<string>();
Expand Down
8 changes: 5 additions & 3 deletions Maple2.File.Tests/ServerTableParserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,11 @@ public void TestUnlimitedEnchantOption() {
public void TestItemMergeOption() {
var parser = new ServerTableParser(TestUtils.ServerReader);

foreach ((_, _) in parser.ParseItemMergeOption()) {
continue;
}
var options = parser.ParseItemMergeOption().ToDictionary(entry => entry.Id, entry => entry.MergeOption);

// 37030001 addresses its slots by partLimit="13,14,15,16,17" and carries no part.
var chaos = options[37030001].slot.Single();
CollectionAssert.AreEqual(new[] { 13, 14, 15, 16, 17 }, chaos.partLimit);
}

[TestMethod]
Expand Down
Loading