Add multiplier config

This commit is contained in:
Aslan 2025-12-23 08:45:01 -05:00
parent 1a349cb045
commit da66cf9001
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,7 @@
"experience": { "experience": {
"gain": 5, "gain": 5,
"startingRequirement": 50, "startingRequirement": 50,
"multiplier": 1.25,
"timeout": 60000 "timeout": 60000
} }
} }

View file

@ -27,7 +27,7 @@ const getRank = (experience: number): IRank => {
while (tmpExperience >= expToNextRank) { while (tmpExperience >= expToNextRank) {
rank++; rank++;
tmpExperience -= expToNextRank; tmpExperience -= expToNextRank;
expToNextRank = expToNextRank *= 1.2; expToNextRank = expToNextRank *= config.app.experience.multiplier;
} }
return { return {