mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
WIP(party-page): UI draft
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user