Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nekiro
Copy link
Member

@nekiro nekiro commented Dec 10, 2024

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

@nekiro nekiro force-pushed the dont-recreate-stackables branch from 44891b5 to cb1442f Compare December 10, 2024 22:18
Copy link
Contributor

@ArturKnopik ArturKnopik left a 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

  1. put 99 gold to bp
  2. kill troll
  3. take gold from troll
    result: stack of gold is filled up to 100, rest of the gold disappear

https://youtu.be/Q0ZHShUD5VA

@nekiro nekiro force-pushed the dont-recreate-stackables branch 6 times, most recently from 7d91e25 to 43ae494 Compare December 19, 2024 23:28
Copy link
Contributor

@ArturKnopik ArturKnopik left a 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

@nekiro nekiro added enhancement Increase or improvement in quality, value, or extent and removed bugfix labels Dec 20, 2024
@nekiro nekiro force-pushed the dont-recreate-stackables branch from 43ae494 to 5948ea0 Compare December 20, 2024 19:23
@nekiro nekiro force-pushed the dont-recreate-stackables branch from 5948ea0 to a3ced86 Compare December 20, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increase or improvement in quality, value, or extent
Projects
Status: Ready to be merged
Development

Successfully merging this pull request may close these issues.

3 participants