mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-27 05:29:59 +00:00
Added preliminary logic for opening triadBingo modal
This commit is contained in:
parent
cecb2792e0
commit
e5b6e64a98
1 changed files with 9 additions and 0 deletions
|
|
@ -91,6 +91,15 @@ habitrpg.controller("InventoryCtrl",
|
|||
User.user.achievements.beastMaster = true;
|
||||
$rootScope.openModal('achievements/beastMaster');
|
||||
}
|
||||
|
||||
// Checks if Triad Bingo has been reached for the first time
|
||||
if(!User.user.achievements.triadBingo
|
||||
&& Shared.countPets(null, User.user.items.pets) >= 90
|
||||
&& Shared.countMounts(null, User.user.items.mounts) >= 90) {
|
||||
// @TODO Loop through pets and make sure all are > -1
|
||||
//User.user.achievements.triadBingo = true;
|
||||
//$rootScope.openModal('achievements/triadBingo');
|
||||
}
|
||||
}
|
||||
|
||||
$scope.purchase = function(type, item){
|
||||
|
|
|
|||
Loading…
Reference in a new issue