Skip to content

Commit

Permalink
fix: skip generating unlikely quest rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Dec 19, 2024
1 parent 6112f9e commit 9c82b90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,16 +519,16 @@
"allInvasions": true,
"invasionPokemon": true,
"rewardTypes": false,
"baseMegaEnergyAmounts": [10, 20, 25],
"baseMegaEnergyAmounts": [],
"stardust": {
"min": 100,
"max": 2500,
"max": 0,
"interval": 100,
"enabled": true
},
"xp": {
"min": 100,
"max": 1000,
"max": 0,
"interval": 100,
"enabled": true
}
Expand Down
7 changes: 4 additions & 3 deletions server/src/filters/builder/pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ function buildPokemon(defaults, base, custom) {
pokemon.stations[`${id}-${form}`] = new BaseFilter(
defaults.stations.pokemon,
)
pokemon.quests[`${id}-${form}`] = new BaseFilter(
defaults.pokestops.pokemon,
)
if (form !== '0')
pokemon.quests[`${id}-${form}`] = new BaseFilter(
defaults.pokestops.pokemon,
)
if (state.db.filterContext.Pokestop.hasConfirmedInvasions) {
pokemon.rocket[`a${id}-${form}`] = new BaseFilter(
defaults.pokestops.invasionPokemon,
Expand Down

0 comments on commit 9c82b90

Please sign in to comment.