Sign in to follow this  
Followers 0
thorgot

[Bug] Wearing rift jewelry uses charges of all identical jewelry in your inventory

2 posts in this topic

ItemBonus.checkDepleteAndRename(final Item usedItem, final Creature owner) checks if the owner it has the buff the item gives. If so, it depletes the item by 1.

 

checkDepleteAndRename is called on every item in your inventory in Creature.pollOwned(), not just the items you are wearing. This results in all the jewelry of the type you're wearing losing charge.

 

As a test, when someone put on a new necklace of focus, the other 2 in his inventory became "used" as well.

 

To fix, you'd want to check if the item was worn in pollOwned before calling checkDepleteAndRename().

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0