mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
feat(event): New Year's 2016
This commit is contained in:
@@ -288,7 +288,8 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
||||
}
|
||||
|
||||
$rootScope.purchase = function(type, item){
|
||||
if (type == 'special') return User.buySpecialSpell({params:{key:item.key}});
|
||||
if (type === 'special') return User.buySpecialSpell({params:{key:item.key}});
|
||||
if (type === 'card') return $scope.castStart(Content.spells.special[item.key]);
|
||||
|
||||
var gems = user.balance * 4;
|
||||
var price = item.value;
|
||||
|
||||
Reference in New Issue
Block a user