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

fix: prevent full ownership transfer when trading with partial charges of item #4008

Merged

Conversation

scarf005
Copy link
Member

Purpose of change

Describe the solution

only set ownership for splitted item if item is counted using charges.

Describe alternatives you've considered

cri more

Testing

Cataclysm: Bright Nights - 957428c3486c_01

traded with 1 of 100 hub gold coins. ownership for 99 coins was intact.

Additional context

we should really make everything stackable and remove this unholy mess.

@github-actions github-actions bot added the src PR changes related to source code. label Dec 29, 2023
@scarf005 scarf005 merged commit 6ade06b into cataclysmbnteam:main Dec 29, 2023
12 checks passed
@scarf005 scarf005 deleted the fix-trade-item-charges-ownership branch December 29, 2023 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src PR changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trading partial stack of items transfers ownership to entire stack instead
2 participants