Merge pull request #5446 from pangeachat/5445-tweak-level-up-function
chore: update constant in level equation to make 6000 xp ~level 10
This commit is contained in:
commit
badc477557
1 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import 'dart:math';
|
||||
|
||||
import 'package:fluffychat/pangea/analytics_misc/constructs_model.dart';
|
||||
import 'package:fluffychat/pangea/common/config/environment.dart';
|
||||
import 'package:fluffychat/pangea/common/utils/error_handler.dart';
|
||||
|
||||
class DerivedAnalyticsDataModel {
|
||||
|
|
@ -30,7 +29,7 @@ class DerivedAnalyticsDataModel {
|
|||
return progress >= 0 ? progress : 0;
|
||||
}
|
||||
|
||||
static final double D = Environment.isStagingEnvironment ? 500 : 1500;
|
||||
static const double D = 300;
|
||||
|
||||
static int calculateXpWithLevel(int level) {
|
||||
// If level <= 1, XP should be 0 or negative by this math.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue