mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Use same exponential XP curve as pq.exe
This commit is contained in:
committed by
Eric Fredricksen
parent
6adb846f75
commit
5cd39f1f18
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user