mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-19 02:04:10 +00:00
tnl bug
This commit is contained in:
parent
fa6014d275
commit
64da77d5ad
1 changed files with 2 additions and 3 deletions
|
|
@ -142,7 +142,6 @@ ready (model) ->
|
|||
|
||||
exports.vote = (e, el, next) ->
|
||||
direction = $(el).attr('data-direction')
|
||||
console.log direction
|
||||
direction = 'up' if direction == 'true/'
|
||||
direction = 'down' if direction == 'false/'
|
||||
|
||||
|
|
@ -194,9 +193,9 @@ ready (model) ->
|
|||
else if task.get('type') != 'reward'
|
||||
hp += delta
|
||||
|
||||
tnl = model.at '_tnl'
|
||||
tnl = model.at('_tnl').get()
|
||||
# level up & carry-over exp
|
||||
if exp > tnl
|
||||
if exp >= tnl
|
||||
exp -= tnl
|
||||
lvl += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue