Fix bug where armoire notes would not display correctly

This commit is contained in:
Blade Barringer
2015-08-14 06:59:23 -05:00
parent 576688c15b
commit 6be339fc77
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -559,7 +559,10 @@ api.potion =
api.armoire =
type: 'armoire',
text: t('armoireText'),
notes: t('armoireNotesEmpty'),
notes: ((user, count)->
return t('armoireNotesEmpty')() if (user.flags.armoireEmpty)
return t('armoireNotesFull')() + count
),
value: 100,
key: 'armoire',
canOwn: ((u)-> _.contains(u.achievements.ultimateGearSets, true))
@@ -19,4 +19,5 @@ mixin reward(item)
ul.items.rewards(ng-if='main && list.type=="reward"')
+reward('item')(ng-repeat='item in itemStore')
+reward('healthPotion')
+reward('armoire')(ng-if='user.flags.armoireEnabled')
+reward('armoire')(ng-if='user.flags.armoireEnabled',
popover='{{armoire.notes(user, armoireCount(user.items.gear.owned))}}')