Repository navigation
Add the perfume cost of taking over a bound item - #175
Conversation
The client's perfume window computes the perfume and gold it asks for from the item's level and rarity, and for heroic items from the level plus 40 per rarity. ShellService now gives the same numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkVtYup7KTZ63CJcxZT
|
No actionable comments were generated in the recent review. WalkthroughThe shell service adds lookups for regular and heroic perfume costs and related gold costs. Its generated documentation and approved output now include perfume cost tables. ChangesPerfume Cost Lookups
Estimated code review effort: 2 (Simple) | ~15 minutes Change: Feature Suggested reviewers: Merge Risk:
|
What changed
Perfume (item 1428) lets a player take over a weapon or armour that is bound to another player. The client's perfume window works out both costs itself, from the item's level and rarity, so the server must charge exactly what it shows.
IShellServicegains:GetPerfumeCost(itemLevel, rarity, heroic): the perfume count. Items up to level 20, level 100 and above, and rarity 0 or 8 cost no perfume. A heroic item costs its level plus 40 per rarity.GetPerfumeGoldCost(itemLevel): the gold. It runs from 1 000 at level 1 to 20 000 at level 90-99.The numbers come from the client executable. Its perfume window calls one function for the count and one for the gold. I ran both for every level from 0 to 255 and every rarity from 0 to 255, and the brackets here are exactly the ones they return.
The
ShellDocumentationapproval table gains both tables.Minor version (new API): 6.6.0.
Generated by Claude Code
Summary by CodeRabbit