mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17: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);
|
||||
|
||||
// Don't group special
|
||||
if (animalGroup.key === 'specialPets') {
|
||||
if (animalGroup.key === 'specialPets' || animalGroup.key === 'wackyPets') {
|
||||
return {none: pets};
|
||||
}
|
||||
|
||||
|
||||
@@ -223,6 +223,7 @@ each(wacky, (pot, key) => {
|
||||
}),
|
||||
premium: false,
|
||||
limited: true,
|
||||
wacky: true,
|
||||
canBuy () {
|
||||
return pot._season === CURRENT_SEASON;
|
||||
},
|
||||
|
||||
@@ -91,7 +91,7 @@ module.exports = function getItemInfo (user, type, item, officialPinnedItems, la
|
||||
locked: false,
|
||||
currency: 'gems',
|
||||
purchaseType: 'hatchingPotions',
|
||||
path: `premiumHatchingPotions.${item.key}`,
|
||||
path: item.wacky ? `wackyHatchingPotions.${item.key}` : `premiumHatchingPotions.${item.key}`,
|
||||
pinType: 'premiumHatchingPotion',
|
||||
};
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user