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:
ggurdin 2026-01-27 09:35:56 -05:00 committed by GitHub
commit badc477557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.