mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
feat(content): Veggie Hatching Potions
This commit is contained in:
@@ -4,6 +4,7 @@ import content from 'common/script/content';
|
||||
const specialPets = Object.keys(content.specialPets);
|
||||
const premiumPets = Object.keys(content.premiumPets);
|
||||
const questPets = Object.keys(content.questPets);
|
||||
const wackyPets = Object.keys(content.wackyPets);
|
||||
const dropPets = Object.keys(content.pets);
|
||||
|
||||
function getText (textOrFunction) {
|
||||
@@ -26,6 +27,7 @@ export function isHatchable (animal, userItems) {
|
||||
|
||||
export function isAllowedToFeed (animal, userItems) {
|
||||
return !specialPets.includes(animal.key) &&
|
||||
!wackyPets.includes(animal.key) &&
|
||||
isOwned('pet', animal, userItems) &&
|
||||
!isOwned('mount', animal, userItems);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user