mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Create method to calculate whether or not user has attained all mystery equipment
This commit is contained in:
@@ -228,6 +228,13 @@ habitrpg.controller("InventoryCtrl",
|
||||
});
|
||||
};
|
||||
|
||||
$scope.hasAllTimeTravelerItems = function(items) {
|
||||
var itemsLeftInTimeTravlerStore = Content.timeTravelerStore(user.items.gear.owned);
|
||||
var keys = Object.keys(itemsLeftInTimeTravlerStore);
|
||||
|
||||
return keys.length === 0;
|
||||
};
|
||||
|
||||
function _updateDropAnimalCount(items) {
|
||||
$scope.petCount = Shared.count.beastMasterProgress(items.pets);
|
||||
$scope.mountCount = Shared.count.mountMasterProgress(items.mounts);
|
||||
|
||||
Reference in New Issue
Block a user