divide tibia TNL by 5, make leveling easier
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ get('/:uidParam?', function(page, model, _arg) {
|
||||
reroll: content.items.reroll
|
||||
});
|
||||
model.fn('_user._tnl', '_user.stats.lvl', function(lvl) {
|
||||
return 50 * Math.pow(lvl, 2) - 150 * lvl + 200;
|
||||
return (50 * Math.pow(lvl, 2) - 150 * lvl + 200) / 5;
|
||||
});
|
||||
model.refList("_habitList", "_user.tasks", "_user.habitIds");
|
||||
model.refList("_dailyList", "_user.tasks", "_user.dailyIds");
|
||||
|
||||
+1
-1
@@ -190,7 +190,7 @@ module.exports.tally = function(user) {
|
||||
lvl = 0;
|
||||
while (lvl < (user.get('stats.lvl') - 1)) {
|
||||
lvl++;
|
||||
expTally += 50 * Math.pow(lvl, 2) - 150 * lvl + 200;
|
||||
expTally += (50 * Math.pow(lvl, 2) - 150 * lvl + 200) / 5;
|
||||
}
|
||||
return user.push('history.exp', {
|
||||
date: new Date(),
|
||||
|
||||
@@ -44,9 +44,9 @@ get '/:uidParam?', (page, model, {uidParam}) ->
|
||||
potion: content.items.potion
|
||||
reroll: content.items.reroll
|
||||
|
||||
# http://tibia.wikia.com/wiki/Formula
|
||||
model.fn '_user._tnl', '_user.stats.lvl', (lvl) ->
|
||||
50 * Math.pow(lvl, 2) - 150 * lvl + 200
|
||||
model.fn '_user._tnl', '_user.stats.lvl', (lvl) ->
|
||||
# http://tibia.wikia.com/wiki/Formula
|
||||
(50 * Math.pow(lvl, 2) - 150 * lvl + 200)/5
|
||||
|
||||
# Default Tasks
|
||||
model.refList "_habitList", "_user.tasks", "_user.habitIds"
|
||||
|
||||
@@ -158,5 +158,5 @@ module.exports.tally = (user) ->
|
||||
lvl = 0 #iterator
|
||||
while lvl < (user.get('stats.lvl')-1)
|
||||
lvl++
|
||||
expTally += 50 * Math.pow(lvl, 2) - 150 * lvl + 200
|
||||
expTally += (50 * Math.pow(lvl, 2) - 150 * lvl + 200)/5
|
||||
user.push 'history.exp', { date: new Date(), value: expTally }
|
||||
Reference in New Issue
Block a user