Repository navigation
Parse step and partLimit on server itemMergeOptionBase slots - #99
Merged
Merged
Conversation
The client table nests slots under <mergeStep step="N">, but the server file has no such level, so a slot now names its step in a step attribute (default 1, which is what every retail row is). partLimit was already present on the 370300xx/370400xx rows and was dropped by the type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Edited archives may give a slot a higher step, so the shipped data being all step 1 is not something the parser test should pin. Co-Authored-By: Claude Opus 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.
The client merge table nests each slot under
<mergeStep step="N">and the client loads every step it finds, keyed by crystal id, step and part. The server file,table/Server/itemMergeOptionBase.xml, has no such level, so there was no way for server data to say which step a crystal rolls. This adds an optionalstepattribute on<slot>, plus thepartLimitattribute some rows already carry and the type was dropping.Xml/Table/Server/ItemMergeOption.cs:Slot.step, default 1. Every shipped row omits it and is step 1, so existing data parses as before.Slot.partLimitis anM2dArrayof ints. The 370300xx/370400xx rows list their slots there (partLimit="13,14,15,16,17") instead of inpart.ServerTableParserTest.TestItemMergeOption: it used to only enumerate. It now checks that row 37030001 readspartLimitas 13, 14, 15, 16, 17, as the XML states. It does not pin every row to step 1, since edited archives may give a slot a higher step.The consumer is MS2Community/PrivateMaple2#2507, the emulator's empowerment code, which needs the step to write a roll into
Empowerment2..5instead of alwaysEmpowerment1.Verification
dotnet test Maple2.File.Tests --filter "FullyQualifiedName~MergeOption"against local archives:TestItemMergeOptionandTestItemMergeOptionParserpass.TestItemMergeOptionParserNewfails on an existing row-count assertion (expects 42 rows in the clientitemmergeoptionbase.xml, the local archive has 251). It reads the client table, which this change does not touch.dotnet format whitespace --verify-no-changesis clean on the touched files.dotnet pack -p:PackageVersion=2.4.40-debug.0was restored into an emulator worktree withMaple2.File.Ingestpointed at it, and the ingest mapper and the server test project built against it.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.