mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
knock feature unlock requirements down a level each
This commit is contained in:
parent
cddd94bf86
commit
6f871b34ff
1 changed files with 3 additions and 3 deletions
|
|
@ -89,14 +89,14 @@ updateStats = (newStats, batch) ->
|
|||
if !obj.flags.customizationsNotification and (obj.stats.exp > 10 or obj.stats.lvl > 1)
|
||||
batch.set 'flags.customizationsNotification', true
|
||||
obj.flags.customizationsNotification = true
|
||||
if !obj.flags.itemsEnabled and obj.stats.lvl >= 2
|
||||
if !obj.flags.itemsEnabled and obj.stats.lvl >= 1
|
||||
# Set to object, then also send to browser right away to get model.on() subscription notification
|
||||
batch.set 'flags.itemsEnabled', true
|
||||
obj.flags.itemsEnabled = true
|
||||
if !obj.flags.partyEnabled and obj.stats.lvl >= 3
|
||||
if !obj.flags.partyEnabled and obj.stats.lvl >= 2
|
||||
batch.set 'flags.partyEnabled', true
|
||||
obj.flags.partyEnabled = true
|
||||
if !obj.flags.petsEnabled and obj.stats.lvl >= 4
|
||||
if !obj.flags.petsEnabled and obj.stats.lvl >= 3
|
||||
batch.set 'flags.petsEnabled', true
|
||||
obj.flags.petsEnabled = true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue