Add multiplier config
This commit is contained in:
parent
1a349cb045
commit
da66cf9001
2 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
"experience": {
|
"experience": {
|
||||||
"gain": 5,
|
"gain": 5,
|
||||||
"startingRequirement": 50,
|
"startingRequirement": 50,
|
||||||
|
"multiplier": 1.25,
|
||||||
"timeout": 60000
|
"timeout": 60000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue