feat(NYE): New Year's cards

This commit is contained in:
Sabe Jones 2014-12-30 19:57:24 -06:00
parent d8cfc1dd4b
commit 51acc477fe
2 changed files with 8 additions and 0 deletions

View file

@ -195,6 +195,9 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
$scope.castStart = function(spell) {
if (User.user.stats.mp < spell.mana) return Notification.text(window.env.t('notEnoughMana'));
if (spell.key == 'nye' && User.user.stats.gp < spell.value)
return Notification.text('Not enough gold.');
$rootScope.applyingAction = true;
$scope.spell = spell;
if (spell.target == 'self') {

View file

@ -49,6 +49,11 @@ script(type='text/ng-template', id='partials/options.inventory.seasonalshop.html
p
| {{::Content.spells.special.snowball.value}}
span(class='shop_gold')
div
button.customize-option(popover='{{::Content.spells.special.nye.notes()}}', popover-title='{{::Content.spells.special.nye.text()}}', popover-trigger='mouseenter', popover-placement='right', ng-click='castStart(Content.spells.special.nye)', class='inventory_special_nye')
p
| {{Content.spells.special.nye.value}}
span(class='shop_gold')
script(type='text/ng-template', id='partials/options.inventory.timetravelers.html')
.container-fluid