feat: easier level up (#2589)

* make level up a bit easier

* fix env var

* fix env var

* generated

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
Wilson 2025-05-01 13:48:59 -04:00 committed by GitHub
parent 31b2d49bcf
commit 93a71fd5f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,7 +189,7 @@ class ConstructListModel {
int calculateLevelWithXp(int totalXP) {
// [D] is the "compression factor". It determines how quickly
/// or slowly the level grows relative to XP
const double D = 2500;
const double D = 1500;
final doubleScore = (1 + sqrt((1 + (8.0 * totalXP / D)) / 2.0));
if (!doubleScore.isNaN && doubleScore.isFinite) {
return doubleScore.floor();