Repository navigation
Parse table/Server/additionalEffectGroup.xml (2.4.34) - #92
Merged
Merged
Conversation
…ffect group as ints An elite npc's <additionalEffect group="G,N"> names group G of additionalEffectGroup.xml and how many of its rows to roll at spawn. The group attribute was split on ':' into strings, so "101,2" arrived as one string; every authored value is comma-delimited. 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.
|
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.
Some elite NPCs (Shadow Expedition, Shadow Crack/Cataclysm, Dark Castle spirits) carry
<additionalEffect group="G,N">: at spawn the server rolls N rows of group G intable/Server/additionalEffectGroup.xmland applies each row's effects (the "Demonic Rage" affixes). This parses that table and readsgroupas the two ints it is. The server side lands in PrivateMaple2 once this publishes.Xml/Table/Server/AdditionalEffectGroup.cs(new) —group { groupId; value[] }, eachvalueone buff as paralleleffectId/effectLevelarrays (a row is sometimes a visible effect plus its hidden driver).ServerTableParser.cs—ParseAdditionalEffectGroup(), yielding(groupId, group)likeParseGroupSpawn.Xml/Npc/AdditionalEffect.cs—groupwasstring[]split on:, so"101,2"came through as one string. Every authored value in GMS2 and KMS2 is comma-delimited (1,1,1,2,1,3,101,2), so it is now[M2dArray] int[]. Nothing in this repo or the ingest read the old field.[101, 2]under NA/Live while 21000001's emptygroupreads as an empty array.The full
Maple2.File.Testsrun has the same 34 failures with and without this change (stale counts such asTestNpcParser7535 vs 8078 against current data); the two new tests pass.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.