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

Resupply fix - avoid negative number #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

uhArno
Copy link

@uhArno uhArno commented Nov 11, 2024

Avoid the "You win nothing, -1 tokens remaining" text! https://i.imgur.com/FJ3mw1F.png

If the -1 had some other reasoning feel free to ignore but it's something that i've noticed

Avoid the "You win nothing, -1 tokens remaining" text! https://i.imgur.com/FJ3mw1F.png
Copy link
Contributor

@x2110311x x2110311x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm seeing the same thing.
dailyBox.tokens would be after you already decremented the token count in the database, so subtracting 1 means it'll always say you have 1 less than you actually have, meaning many people end up seeing -1.

I concur with this PR

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.

2 participants