mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix(veggies): pinning and sorting
This commit is contained in:
@@ -669,7 +669,7 @@
|
|||||||
let pets = this.listAnimals(animalGroup, 'pet', hideMissing, sortBy, searchText);
|
let pets = this.listAnimals(animalGroup, 'pet', hideMissing, sortBy, searchText);
|
||||||
|
|
||||||
// Don't group special
|
// Don't group special
|
||||||
if (animalGroup.key === 'specialPets') {
|
if (animalGroup.key === 'specialPets' || animalGroup.key === 'wackyPets') {
|
||||||
return {none: pets};
|
return {none: pets};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -223,6 +223,7 @@ each(wacky, (pot, key) => {
|
|||||||
}),
|
}),
|
||||||
premium: false,
|
premium: false,
|
||||||
limited: true,
|
limited: true,
|
||||||
|
wacky: true,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return pot._season === CURRENT_SEASON;
|
return pot._season === CURRENT_SEASON;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ module.exports = function getItemInfo (user, type, item, officialPinnedItems, la
|
|||||||
locked: false,
|
locked: false,
|
||||||
currency: 'gems',
|
currency: 'gems',
|
||||||
purchaseType: 'hatchingPotions',
|
purchaseType: 'hatchingPotions',
|
||||||
path: `premiumHatchingPotions.${item.key}`,
|
path: item.wacky ? `wackyHatchingPotions.${item.key}` : `premiumHatchingPotions.${item.key}`,
|
||||||
pinType: 'premiumHatchingPotion',
|
pinType: 'premiumHatchingPotion',
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user