Use same exponential XP curve as pq.exe

This commit is contained in:
Eric Fredricksen
2018-10-02 12:53:48 -07:00
committed by Eric Fredricksen
parent 6adb846f75
commit 5cd39f1f18
+3 -2
View File
@@ -302,8 +302,9 @@ Number.prototype.div = function (divisor) {
function LevelUpTime(level) { // seconds function LevelUpTime(level) { // seconds
// 20 minutes per level // 20 minutes for for level 1
return 20 * level * 60; // exponential increase after that
return Math.round((20 + Math.pow(1.15, level) * 60);
} }