feat(item-store): unlock item-store earlier (lvl 1), see #4134

This commit is contained in:
Tyler Renelle 2014-10-09 17:23:54 -06:00
parent 4e3b0e1dfe
commit d843ff1ae4
2 changed files with 4 additions and 4 deletions

View file

@ -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) {

View file

@ -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