Skip to content

Read the SP upgrade materials family from the item row - #3923

Merged
erwan-joly merged 1 commit into
masterfrom
claude/sp-upgrade-family
Nov 29, 2026
Merged

erwan-joly merged 1 commit into
masterfrom
claude/sp-upgrade-family

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Erwan · project thread

What

SpUpgradeOperationBase classified specialist cards by morph in server code: up to 16 take souls, higher ones dragon parts, and 55-58 (the cards of the other dimensions) Dimensiolith shards as well. That is item data.

  • New Item.SpecialistUpgradeMaterial (None, Souls, DragonParts, DragonPartsAndShards), set by ItemParser on player SP cards (partner cards stay None). Migration AddSpecialistUpgradeMaterial.
  • The SP upgrade window reads the column. A card on a database not yet re-parsed (None) is treated as soul-based, which is what every card was before the dragon cards existed.
  • documentation/dat/Item.dat.md snapshot gains the new computed field.

Run the parser again before deploying: until it does, every card reads None and is treated as soul-based, so dragon cards would ask for souls. Behaviour is unchanged after the rerun. This PR and #3895 / #3899 each add a migration: whichever merges later gets rebased and its migration regenerated.

Tests

  • Parser: a morph 1 card is soul-based, morph 30 dragon, morph 55 dragon + shards, a non-SP item None. Parser.Tests 498/498.
  • SP upgrade specs place cards by family; GameObject upgrade specs 152/152. Database.Tests (migration check) 16/16.

Client check

Swordsman with a Warrior card (901) at +3, 100 feathers and 100 green souls in the Etc pocket, 100 full moons, 10 000 000 gold, at an Alchemist's Card upgrade window. The branch ran on a copy of the database re-parsed with this branch's parser (901 reads Souls).

master this branch
card placed master: Requires 200,000 Gold, 7 full moons, 10 feathers, 8 green souls; Etc shows 100 feathers and 100 souls branch: same requirements and the same Etc pocket
after the upgrade master: Upgrade to next level successful, Etc shows 90 feathers and 92 souls, 9,800,000 gold branch: Upgrade to next level successful, Etc shows 90 feathers and 92 souls, 9,800,000 gold

Both runs succeeded and took the same materials: 200 000 gold, 10 feathers, 7 full moons and 8 green souls, with the card going from +3 to +4 (ivn 0 0.901.0.4). The dragon-card and shard checks below are not shot.

Manual checks

  • Rerun the parser, then upgrade a soul card (e.g. Warrior SP) at +3: green souls are taken
  • A dragon card at +3 takes dragon skins; a card of another dimension at +15 also takes a shard

Generated by Claude Code

@erwan-joly erwan-joly self-assigned this Nov 29, 2026
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 6895d3d and c9d7d6e.

Files ignored due to path filters: 1

  • src/NosCore.Database/Migrations/20261129151011_AddSpecialistUpgradeMaterial.Designer.cs is excluded by !**/*.Designer.cs
Files selected for processing: 9

  • documentation/dat/Item.dat.md
  • src/NosCore.Data/Enumerations/Items/SpecialistUpgradeMaterial.cs
  • src/NosCore.Database/Entities/Item.cs
  • src/NosCore.Database/Migrations/20261129151011_AddSpecialistUpgradeMaterial.cs
  • src/NosCore.Database/Migrations/NosCoreContextModelSnapshot.cs
  • src/NosCore.GameObject/Services/UpgradeService/SpUpgradeOperationBase.cs
  • src/NosCore.Parser/Parsers/ItemParser.cs
  • test/NosCore.GameObject.Tests/Services/UpgradeService/SpUpgradeOperationTests.cs
  • test/NosCore.Parser.Tests/ItemParserTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Copy link
Copy Markdown
Collaborator Author

Review: OK. The migration conflicts on NosCoreContextModelSnapshot.cs, so regenerate it once the migrations queued ahead of it have landed. The parser has to run again before deploy, or every card reads None and dragon SPs ask for souls; say so in the body.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn


Generated by Claude Code

The parser marks each player specialist card with the materials its upgrade
takes (souls, dragon parts, or dragon parts and Dimensiolith shards); the SP
upgrade window reads that instead of comparing the card's morph itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkSx3vNnztpKC23ba76
@erwan-joly
erwan-joly force-pushed the claude/sp-upgrade-family branch from 1228018 to c9d7d6e Compare November 29, 2026 15:12
erwan-joly pushed a commit that referenced this pull request Nov 29, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
@erwan-joly
erwan-joly merged commit eb51e0b into master Nov 29, 2026
15 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.

2 participants