mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix hardcoded total pets count
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user