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

feat: Making giveItem more intuitive #1819

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zozomanx
Copy link

Before when giving a stack of items to another player an error would be given if the exact amount wasn't specified in the count box.

A single item was given when "0" was put in the count box which didn't feel intuitive.

With this change, if 0 is given the entire stack will be given, if an amount greater than the stack is used in the count box then the entire stack will be given, if somehow a negative is given an error is generated.

This change gives a more natural user experience.

Before when giving a stack of items to another player an error would be given if the exact amount wasn't specified in the count box.

A single item was given when "0" was put in the count box.

With this change, if 0 is given the entire stack will be given, if an amount greater than the stack is used in the count box then the entire stack will be given.

This change is a more natural change than how it was previously being used.
@zozomanx zozomanx marked this pull request as ready for review October 15, 2024 23:50
@zozomanx zozomanx marked this pull request as draft October 15, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant