Repository navigation
Read the SP upgrade materials family from the item row - #3923
Conversation
|
Warning Review limit reachedYou'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. View limit details
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. |
|
Review: OK. The migration conflicts on 🤖 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
1228018 to
c9d7d6e
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
Requested by Erwan · project thread
What
SpUpgradeOperationBaseclassified 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.Item.SpecialistUpgradeMaterial(None,Souls,DragonParts,DragonPartsAndShards), set byItemParseron player SP cards (partner cards stayNone). MigrationAddSpecialistUpgradeMaterial.None) is treated as soul-based, which is what every card was before the dragon cards existed.documentation/dat/Item.dat.mdsnapshot gains the new computed field.Run the parser again before deploying: until it does, every card reads
Noneand 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
None. Parser.Tests 498/498.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).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
Generated by Claude Code