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.userCurrentPet = User.user.items.currentPet;
|
||||||
$scope.pets = window.habitrpgShared.items.items.pets;
|
$scope.pets = window.habitrpgShared.items.items.pets;
|
||||||
$scope.hatchingPotions = window.habitrpgShared.items.items.hatchingPotions;
|
$scope.hatchingPotions = window.habitrpgShared.items.items.hatchingPotions;
|
||||||
|
$scope.totalPets = $scope.pets.length * $scope.hatchingPotions.length;
|
||||||
|
|
||||||
$scope.hasPet = function(name, potion){
|
$scope.hasPet = function(name, potion){
|
||||||
if (!$scope.userPets) return false;
|
if (!$scope.userPets) return false;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
| ! Until that day,
|
| ! Until that day,
|
||||||
a(target='_blank', href='https://f.cloud.github.com/assets/2374703/164631/3ed5fa6c-78cd-11e2-8743-f65ac477b55e.png') have a look-see
|
a(target='_blank', href='https://f.cloud.github.com/assets/2374703/164631/3ed5fa6c-78cd-11e2-8743-f65ac477b55e.png') have a look-see
|
||||||
| at all the pets you can collect.
|
| at all the pets you can collect.
|
||||||
h4 {{userPets.length}} / 90 Pets Found
|
h4 {{userPets.length}} / {{totalPets}} Pets Found
|
||||||
|
|
||||||
table.pets(ng-repeat='pet in pets')
|
table.pets(ng-repeat='pet in pets')
|
||||||
tbody
|
tbody
|
||||||
|
|||||||
Reference in New Issue
Block a user