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:
parent
31b2d49bcf
commit
93a71fd5f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue