Repository navigation
Extend the upgrade bonus to +13 and add the rarity gamble thresholds - #194
Conversation
The client's item window lists 220%, 245% and 300% for an upgrade lead of 11 to 13, and equipment now goes up to +13, so a lead above 10 no longer stops at 200%. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkTbyTn9rzkycAxpw6c
|
No actionable comments were generated in the recent review. WalkthroughThe upgrade bonus array adds values for larger upgrade leads. The documentation test and approved table now cover leads through 14. ChangesUpgrade Bonus Curve
Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Possibly related PRs
Suggested reviewers: Merge Risk:
|
The roll range and the cumulative threshold of each rarity, rarity 8 included for champion gear, so the server no longer keeps its own copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkTbyTn9rzkycAxpw6c
Requested by Erwan · project thread
Part of NosCoreIO/NosCore#3352. Two equipment changes batched into one release (minor bump: a new service).
Upgrade bonus past +10
UpgradeBonusServicestopped at a lead of 10 (+200%). Equipment now goes up to +13 (Constants.MaxEquipmentUpgrade), so a +13 weapon against +0 armour only got the +10 bonus.The client's item window has a single upgrade percentage table,
10 15 22 32 43 54 65 90 120 200 220 245 300, indexed by an upgrade count of 1 to 13. The first ten match this service; this adds the last three (2.2, 2.45, 3.0). A lead above 13 still clamps to the last step.Rarity gamble thresholds
New
IGambleService: the roll range (80) and the cumulative threshold of each rarity (8 → 1, 7 → 2, 6 → 3, 5 → 5, 4 → 10, 3 → 15, 2 → 30, 1 → 40). NosCore keeps these as a private table inside its gamble operation; the consumer PR switches it to this service with no change in odds. Rarity 8 is champion gear only, which stays the server's rule.Tests
UpgradeBonusDocumentationasserts the +13 value; its approval table now runs to a lead of 14.GambleDocumentationapproval table and an out-of-range test (rarity 0, -1 and 9 return 0).dotnet test: 96 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_014gSmkTbyTn9rzkycAxpw6c