-
-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed remove items from stash on create market offer #474
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with low and very high values like 20k+ items at once and it was smooth! 110% approved.
When we have certain item both in depot and stash, and create market offer, it will remove the amount from both depot and stash. It should prioritize either depot or stash, so no double amount of items is being removed. |
Ok I'll check. |
@gerotib the bugs have been corrected. Or the only thing that was left was related to item count. When I have more than 65k items stored and try to raise an offer, it won't create. I'm investigating. |
fd846c2
to
b12f4d2
Compare
Kudos, SonarCloud Quality Gate passed! |
This PR is stale because it has been open 45 days with no activity. |
Created the Player::requestLockerItems function to avoid code repetition, it can be used in ProtocolGame and Game improved the way locker items were read and stored Game::getMarketItemList function has been replaced by Player::requestLockerItems Small modification in ProtocolGame::sendMarketEnter function to avoid code repetition, it will read Player::requestLockerItems function Added some logs (debug) to make it easier to find problems in the future
@gerotib and @CleberMoreira can test again, please? |
Found a small issue there, this is how to reproduce: Also found another bug, but i think it's on main too: |
09fa0cd
to
7f6cb33
Compare
Extracted remove items in own function Added some checks for avoid item cloning/duplication
7f6cb33
to
89a8d66
Compare
After the last commits, the bugs I commented were solved and also the stow function of mailbox were implemented. I just noticed that, when you right click on a stackable item inside the mailbox, and select "stow all items of this type", the function is searching items to stow at the players backpack, not at the mailbox. |
48b01cd
to
823c002
Compare
Thanks for reporting the issues. Are fixed! |
Kudos, SonarCloud Quality Gate passed! |
@dudantas I have found an issue in |
@gerotib It's been ten days since I asked to test again. Now, I've merged this pr. I'll test it later and let you know. You can open an issue? |
@dudantas sure, I just got back and didn't see this earlier |
#474) Resolves #470 • Created the Player::requestLockerItems function to avoid code repetition, it can be used in ProtocolGame and Game class improved the way locker items were read and stored • Game::getMarketItemList function has been replaced by Player::requestLockerItems • Small modification in ProtocolGame::sendMarketEnter function to avoid code repetition, it will read Player::requestLockerItems function •Added some error logs for market functions so that we can identify where the problem was, in future tests. And if there is a problem during the processing of the offer, it will not be created, making it impossible to have an item or money clone. • Added some logs (debug) to make it easier to find problems in the future
Resolves #470
Created the Player::requestLockerItems function to avoid code repetition, it can be used in ProtocolGame and Game class improved the way locker items were read and stored
Game::getMarketItemList function has been replaced by Player::requestLockerItems
Small modification in ProtocolGame::sendMarketEnter function to avoid code repetition, it will read Player::requestLockerItems function
Added some error logs for market functions so that we can identify where the problem was, in future tests. And if there is a problem during the processing of the offer, it will not be created, making it impossible to have an item or money clone.
Added some logs (debug) to make it easier to find problems in the future