Skip to content

Read itemgemstoneupgrade EquipPart as a comma list - #83

Merged
Zintixx merged 1 commit into
MS2Community:masterfrom
Zintixx:gemstone-equippart-array
Sep 23, 2026
Merged

Zintixx merged 1 commit into
MS2Community:masterfrom
Zintixx:gemstone-equippart-array

Conversation

@Zintixx

@Zintixx Zintixx commented Sep 23, 2026 •

Copy link
Copy Markdown

ItemGemstoneUpgrade.EquipPart was a single int, but the client reads it as a comma list: CItemGemStoneUpgradeTable_Load (GMS2 14036ed20) splits the attribute and ORs 1 << (v-1) for each value into a mask. itemlapenshardupgrade.xml shares the same attribute and loader shape and is already [M2dArray] int[], so this brings the two in line. Maple2 needs the list to check socket targets the way the client does (MS2Community/PrivateMaple2#1312).

  • Xml/Table/ItemGemstoneUpgrade.cs: EquipPart from [XmlAttribute] int to [M2dArray] int[] (default , delimiter). Current data only uses single values (3 and 4), which now come back as one-element arrays. Breaking for any consumer that reads EquipPart as an int.
  • PackageVersion 2.4.24 → 2.4.25.

Verification

dotnet build clean. TestParseItemGemstoneUpgrade and TestParseItemLapenshardUpgrade pass. Maple2 was built and its tests run against a locally packed 2.4.25-debug.1.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

The client parses EquipPart as a comma-separated list into a bitmask
(CItemGemStoneUpgradeTable_Load), the same as itemlapenshardupgrade,
whose EquipPart is already [M2dArray] int[]. Match that type here.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 83a27dbf-047a-45e1-927f-344e1ea639a0


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Zintixx
Zintixx merged commit 0b3c3e6 into MS2Community:master Sep 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant