fix hardcoded total pets count

This commit is contained in:
Dušan Juretić
2013-09-18 11:07:23 -03:00
parent 9ec3c4aaed
commit c6472bc615
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ habitrpg.controller("PetsCtrl", ['$scope', 'User',
$scope.userCurrentPet = User.user.items.currentPet;
$scope.pets = window.habitrpgShared.items.items.pets;
$scope.hatchingPotions = window.habitrpgShared.items.items.hatchingPotions;
$scope.totalPets = $scope.pets.length * $scope.hatchingPotions.length;
$scope.hasPet = function(name, potion){
if (!$scope.userPets) return false;