mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-02 07:49:39 +00:00
feat(item-store): unlock item-store earlier (lvl 1), see #4134
This commit is contained in:
parent
4e3b0e1dfe
commit
d843ff1ae4
2 changed files with 4 additions and 4 deletions
4
dist/habitrpg-shared.js
vendored
4
dist/habitrpg-shared.js
vendored
|
|
@ -15191,10 +15191,10 @@ api.wrap = function(user, main) {
|
|||
if (user.flags == null) {
|
||||
user.flags = {};
|
||||
}
|
||||
if (!user.flags.customizationsNotification && (user.stats.exp > 10 || user.stats.lvl > 1)) {
|
||||
if (!user.flags.customizationsNotification && (user.stats.exp > 5 || user.stats.lvl > 1)) {
|
||||
user.flags.customizationsNotification = true;
|
||||
}
|
||||
if (!user.flags.itemsEnabled && user.stats.lvl >= 2) {
|
||||
if (!user.flags.itemsEnabled && (user.stats.exp > 10 || user.stats.lvl > 1)) {
|
||||
user.flags.itemsEnabled = true;
|
||||
}
|
||||
if (!user.flags.partyEnabled && user.stats.lvl >= 3) {
|
||||
|
|
|
|||
|
|
@ -1242,9 +1242,9 @@ api.wrap = (user, main=true) ->
|
|||
|
||||
# Set flags when they unlock features
|
||||
user.flags ?= {}
|
||||
if !user.flags.customizationsNotification and (user.stats.exp > 10 or user.stats.lvl > 1)
|
||||
if !user.flags.customizationsNotification and (user.stats.exp > 5 or user.stats.lvl > 1)
|
||||
user.flags.customizationsNotification = true
|
||||
if !user.flags.itemsEnabled and user.stats.lvl >= 2
|
||||
if !user.flags.itemsEnabled and (user.stats.exp > 10 or user.stats.lvl > 1)
|
||||
user.flags.itemsEnabled = true
|
||||
if !user.flags.partyEnabled and user.stats.lvl >= 3
|
||||
user.flags.partyEnabled = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue