delaford/game

Fix levels of progress -- or rather change the way we get experience

djasnowski opened this issue · 0 comments

Seems like the levels of Smithing/Mining are messed up.

game/server/shared/ui.js

Lines 241 to 251 in 8e6755f

static getLevel(exp) {
let level = 1;
let calcExp = 0;
while (exp > calcExp) {
calcExp = UI.getExperience(level);
if (calcExp > exp) break;
level += 1;
}
return (level - 1);
}

Specifically, that there is what is causing players to level up. Perhaps, since it's only levels 1-99, we don't really need to get the experience via formula but rather just a key/value pair.

Level 2 shouldn't start until, at least, ~80 experience points. We're following the same trajectory of RuneScape but a tad smaller. So Level 99 is around 10 million exp.