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:
Keith Holliday
2018-03-02 14:30:11 -07:00
committed by Sabe Jones
parent 7cff331800
commit 9c9b67aa9d
14 changed files with 174 additions and 50 deletions

View File

@@ -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,