WIP(party-page): UI draft

This commit is contained in:
Sabe Jones
2015-08-10 13:42:36 -05:00
parent f97012798e
commit 28ae6afd92
11 changed files with 107 additions and 59 deletions

View File

@@ -27,7 +27,6 @@ function dropPetsCurrentlyOwned(pets) {
return count;
}
function mountMasterProgress(mounts) {
var count = 0;
_(DROP_ANIMALS).each(function(animal) {
@@ -51,9 +50,23 @@ function remainingGearInSet(userGear, set) {
return count;
}
function questsOfCategory(userQuests, category) {
var quests = _.filter(content.quests, function(quest) {
var categoryMatches = quest.category === category;
var hasQuest = userQuests[quest.key];
return categoryMatches && hasQuest;
});
var count = _.size(quests);
return count;
}
module.exports = {
beastMasterProgress: beastMasterProgress,
dropPetsCurrentlyOwned: dropPetsCurrentlyOwned,
mountMasterProgress: mountMasterProgress,
remainingGearInSet: remainingGearInSet
remainingGearInSet: remainingGearInSet,
questsOfCategory: questsOfCategory
};