Only show attainable and owned special pets/mounts (#12206)

* Only show attainable and owned special pets/mounts

Fixes #9498

* #9498: Handle comments

Don't change API,
put canFind in petInfo and mountInfo

* #9498: Move canFind to itemInfo, to allow sync

* #9498: Create a show method, to allow update without reload.
This commit is contained in:
Frank Maximus
2020-05-31 22:08:18 +02:00
committed by GitHub
parent 1c00d7de5b
commit 6ff8254137
2 changed files with 81 additions and 1 deletions

View File

@@ -81,6 +81,73 @@ const [premiumPets, premiumMounts] = constructSet('premium', dropEggs, premiumPo
const [questPets, questMounts] = constructSet('quest', questEggs, dropPotions);
const wackyPets = constructPetOnlySet('wacky', dropEggs, wackyPotions);
const canFindSpecial = {
pets: {
// Veteran Pet Ladder - verifyUserName
'Wolf-Veteran': true,
'Tiger-Veteran': false,
'Lion-Veteran': false,
'Bear-Veteran': false,
'Fox-Veteran': false,
// Thanksgiving pet ladder
'Turkey-Base': false,
'Turkey-Gilded': false,
// Habitoween pet ladder
'JackOLantern-Base': false,
'JackOLantern-Glow': false,
'JackOLantern-Ghost': false,
// Naming Day
'Gryphon-RoyalPurple': false,
// Summer Splash Orca
'Orca-Base': false,
// Quest pets
'BearCub-Polar': true, // evilsanta
// World Quest Pets - Found in Time Travel Stable
'MantisShrimp-Base': true, // dilatory
'Mammoth-Base': true, // stressbeast
'Phoenix-Base': true, // burnout
'MagicalBee-Base': true, // bewilder
'Hippogriff-Hopeful': true, // dysheartener
// Contributor/Backer pets
'Dragon-Hydra': true, // Contributor level 6
'Jackalope-RoyalPurple': true, // subscription
'Wolf-Cerberus': false, // Pet once granted to backers
'Gryphon-Gryphatrice': false, // Pet once granted to kickstarter
},
mounts: {
// Thanksgiving pet ladder
'Turkey-Base': false,
'Turkey-Gilded': false,
// Habitoween pet ladder
'JackOLantern-Base': false,
'JackOLantern-Glow': false,
'JackOLantern-Ghost': false,
// Naming Day
'Gryphon-RoyalPurple': false,
// Summer Splash Orca
'Orca-Base': false,
// Quest mounts
'BearCub-Polar': true, // evilsanta
'Aether-Invisible': true, // lostMasterclasser4
// World Quest Pets - Found in Time Travel
'MantisShrimp-Base': true, // dilatory
'Mammoth-Base': true, // stressbeast
'Phoenix-Base': true, // burnout
'MagicalBee-Base': true,
'Hippogriff-Hopeful': true,
// Contributor/Backer pets
'LionCub-Ethereal': true, // Backer tier 90
'Jackalope-RoyalPurple': true, // subscription
'Gryphon-Gryphatrice': false, // Pet once granted to kickstarter
},
};
const specialPets = {
'Wolf-Veteran': 'veteranWolf',
'Wolf-Cerberus': 'cerberusPup',
@@ -131,6 +198,7 @@ each(specialPets, (translationString, key) => {
key,
type: 'special',
text: t(translationString),
canFind: canFindSpecial.pets[key],
};
});
@@ -139,6 +207,7 @@ each(specialMounts, (translationString, key) => {
key,
type: 'special',
text: t(translationString),
canFind: canFindSpecial.mounts[key],
};
});