mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
minor fix
This commit is contained in:
parent
bb4c0d2d69
commit
9c6d4deb85
1 changed files with 2 additions and 3 deletions
|
|
@ -1,8 +1,6 @@
|
|||
habitrpg.controller("MarketCtrl", ['$rootScope', '$scope', 'User',
|
||||
function($rootScope, $scope, User) {
|
||||
|
||||
User.set('balance', 4);
|
||||
|
||||
$scope.eggs = window.habitrpgShared.items.items.pets;
|
||||
$scope.hatchingPotions = window.habitrpgShared.items.items.hatchingPotions;
|
||||
$scope.userEggs = User.user.items.eggs;
|
||||
|
|
@ -29,10 +27,11 @@ habitrpg.controller("MarketCtrl", ['$rootScope', '$scope', 'User',
|
|||
};
|
||||
|
||||
dataStore.data[storePath] = store;
|
||||
User.user.balance = (gems - item.value) / 4;
|
||||
|
||||
User.log([
|
||||
dataStore,
|
||||
{ op: 'set', data: {'balance': (gems - item.value) / 4} }
|
||||
{ op: 'set', data: {'balance': User.user.balance} }
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue