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: stamina boost overflow #1763

Merged
merged 1 commit into from
Nov 1, 2023
Merged

fix: stamina boost overflow #1763

merged 1 commit into from
Nov 1, 2023

Conversation

luan
Copy link
Contributor

@luan luan commented Nov 1, 2023

This is a big one, players would stop saving correctly after getting exp boosts from daily rewards totally more than max tiny int.
Fixes:

  • Change DB column to uint16 (same as the c++ variable type)
  • Programatically set the max value to 12 hours (or 43,200 seconds)

Copy link

sonarqubecloud bot commented Nov 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@luan luan merged commit 2a3a028 into main Nov 1, 2023
38 checks passed
@luan luan deleted the luan/fix-expboost branch November 1, 2023 04:20
marcusvcj pushed a commit to marcusvcj/canary that referenced this pull request Nov 1, 2023
This is a big one, players would stop saving correctly after getting exp
boosts from daily rewards totally more than max tiny int.
Fixes:
- Change DB column to uint16 (same as the c++ variable type)
- Programatically set the max value to 12 hours (or 43,200 seconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants