mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
itemsEnabled bug
This commit is contained in:
parent
05b5caa99f
commit
fea1e0efdc
1 changed files with 2 additions and 2 deletions
|
|
@ -96,8 +96,8 @@ updateStats = (newStats, update) ->
|
|||
newStats.exp -= tnl
|
||||
userSet 'stats.lvl', userObj.stats.lvl + 1, update
|
||||
userSet 'stats.hp', 50, update
|
||||
if !userObj.items?.itemsEnabled? and newStats.exp >=15
|
||||
userSet 'items.itemsEnabled', true, update
|
||||
if !userObj.items?.itemsEnabled and newStats.exp >=15
|
||||
user.set 'items.itemsEnabled', true #bit of trouble using userSet here
|
||||
userSet 'stats.exp', newStats.exp, update
|
||||
|
||||
if newStats.money?
|
||||
|
|
|
|||
Loading…
Reference in a new issue