-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Don't recreate stackables every move #4873
base: master
Are you sure you want to change the base?
Conversation
44891b5
to
cb1442f
Compare
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.
There is a case where it doesn't work
- put 99 gold to bp
- kill troll
- take gold from troll
result: stack of gold is filled up to 100, rest of the gold disappear
7d91e25
to
43ae494
Compare
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.
Stackables is not moved to destiny container if stack is filled up, rest of stackables stays in source container like monster body
43ae494
to
5948ea0
Compare
5948ea0
to
a3ced86
Compare
Pull Request Prelude
Changes Proposed
Follow up to #4761
Don't recreate stackables on every move, create new stackables only when really needed.
Issues addressed:
Stackable items are recreated even when they shouldn't, if you move a full stack of stackable item, why would you create a new item and delete the old one?
This seems pretty wasteful and unnecessary.
How to test:
Play with stackables