Pokeclicker-Scripts
Pokeclicker-Scripts copied to clipboard
Can't deselect/select quests
It seems that the new update broke the auto quest. I can no longer switch which quests are active. When I click on a quest to either select or deselect it, it functions as if I clicked another random quest. (Ex: trying to deactivate the shiny quest instead activates a gem quest). I do not code, but it seems like the newest update has changed the buttons' size, which might be causing/contributing to the issue. If it matters at all, I'm on the latest desktop version.
This is the size when auto quest is on.
Size after turning 'auto' off and paying money to refresh the quest list.
Gives me a reason to update this and make this visibly work better.
FYI you can fix this by opening the console and clearing the filter on quest types:
- Press F12, then go into the Console tab.
- Type
localStorage.removeItem('autoQuestTypes')into the console and press Enter to clear the filter. - Refresh the game.
My guess is that the base game changed the types but the script cached them at the time it was first run, as seen in the script:
//Define quest types
let questTypes = [];
if (localStorage.getItem('autoQuestTypes') == null){
for (const type in QuestHelper.quests) {
questTypes.push(type);
}
localStorage.setItem('autoQuestTypes', JSON.stringify(questTypes))
} else {
questTypes = JSON.parse(localStorage.getItem('autoQuestTypes'));
}
So if the base game adds / changes quest types, the localStorage is out of sync and it creates this issue.
Is the clearing filter solution working on the desktop client and if so, how? I think the F12 + console tab is just on browser or am I wrong?