Bugfix: Implement missing Lahap jewel combine/dismantle tax#794
Bugfix: Implement missing Lahap jewel combine/dismantle tax#794eduardosmaniotto wants to merge 1 commit into
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a missing economic mechanic by enforcing Zen costs for jewel stacking and unstacking operations at the Lahap NPC. By implementing these fees, the change ensures that jewel management now correctly consumes player currency, with proper validation to prevent unauthorized operations and clear client-side feedback for balance updates. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces fees for combining and dismantling item stacks (jewels) in ItemStackAction.cs, including checking for sufficient funds and updating the player's money UI. It also refactors logging to use structured formats and corrects minor typos. A critical security issue was identified where a stackSize of 0 could bypass the fee and jewel requirements, potentially allowing players to exploit the system. A validation check for valid bundle sizes (10, 20, or 30) was suggested to prevent this.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Closes #765
Add Zen fees to Lahap jewel combine/dismantle operations
Lahap's jewel combine and dismantle were free. This adds hardcoded Zen costs:
Zen is deducted after item validation but before items are consumed, avoiding any rollback complexity. The client is notified of the balance change via IUpdateMoneyPlugIn.