mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Keys kennel fixes (#9848)
* Show keys to pets immediately * Ensured keys to pets dissapear after use * Added resdirect to stable after purchase * Added mount check and updated keys to mounts and to both * Added api calls * Added check for beastmaster progress * Added mount check for release mounts. Added pets and mount check to release both * Added actions * Added catch to common tests * Added beast count and reload * Removed extra console log
This commit is contained in:
committed by
Sabe Jones
parent
7cff331800
commit
9c9b67aa9d
@@ -17,6 +17,16 @@ function beastMasterProgress (pets = {}) {
|
||||
return count;
|
||||
}
|
||||
|
||||
function beastCount (pets = {}) {
|
||||
let count = 0;
|
||||
|
||||
each(DROP_ANIMALS, (animal) => {
|
||||
if (pets[animal] > 0) count++;
|
||||
});
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
function dropPetsCurrentlyOwned (pets = {}) {
|
||||
let count = 0;
|
||||
|
||||
@@ -67,6 +77,7 @@ function questsOfCategory (userQuests = {}, category) {
|
||||
|
||||
module.exports = {
|
||||
beastMasterProgress,
|
||||
beastCount,
|
||||
dropPetsCurrentlyOwned,
|
||||
mountMasterProgress,
|
||||
remainingGearInSet,
|
||||
|
||||
Reference in New Issue
Block a user