diff --git a/src/app/index.coffee b/src/app/index.coffee index 667a105118..c3d7f1f26a 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -95,12 +95,24 @@ ready (model) -> else user.set 'stats.hp', stats.hp - # level up & carry-over exp if stats.exp? + # level up & carry-over exp tnl = model.get '_tnl' if stats.exp >= tnl stats.exp -= tnl user.set 'stats.lvl', user.get('stats.lvl') + 1 + if !user.get('items.itemsEnabled') and stats.exp >=50 + user.set 'items.itemsEnabled', true + $('ul.items').popover + title: "Item Store Unlocked" + placement: 'left' + html: true + content: "
\ + \ + Congradulations, you have unlocked the Item Store! You can now buy weapons, armor, potions, etc. Read each item's comment for more information. \ + [Close]
" + $('ul.items').popover 'show' + user.set 'stats.exp', stats.exp if stats.money? diff --git a/styles/app/index.styl b/styles/app/index.styl index 54cc403ab7..1355373e9b 100644 --- a/styles/app/index.styl +++ b/styles/app/index.styl @@ -115,7 +115,9 @@ footer.footer right: 10px /* ----- Items, Weapons, Armor -----*/ +.item-store-popover img + float:left + padding-right:7px; + .item .task-text img max-height: 16px - - diff --git a/views/app/index.html b/views/app/index.html index ce855c0b1e..4ba2cecd81 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -102,9 +102,13 @@ - + + {#if _user.items.itemsEnabled} + + {/} +