mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
fix hardcoded total pets count
This commit is contained in:
parent
9ec3c4aaed
commit
c6472bc615
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
| ! 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
|
||||
| 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')
|
||||
tbody
|
||||
|
|
|
|||
Loading…
Reference in a new issue