diff --git a/src/config.example.json b/src/config.example.json
index 2cdb07e7..f352188b 100644
--- a/src/config.example.json
+++ b/src/config.example.json
@@ -72,7 +72,7 @@
}
},
"discord": {
- "enabled": true,
+ "enabled": false,
"status": "Map Status: Online",
"botToken": "",
"clientId": "",
diff --git a/src/views/index-js.mustache b/src/views/index-js.mustache
index 940a5d03..3a7dc0bb 100644
--- a/src/views/index-js.mustache
+++ b/src/views/index-js.mustache
@@ -3038,6 +3038,25 @@ function addPokemonFilter (pokemonId, formId, show) {
});
}
+function addQuestFilter (pokemonId, itemId, show) {
+ if (pokemonId > 0) {
+ questFilter['p' + pokemonId].show = show;
+ }
+ if (itemId > 0) {
+ questFilter['i' + itemId].show = show;
+ }
+ store('quest_filter', JSON.stringify(questFilter));
+
+ $.each(pokestopMarkers, function (index, pokestop) {
+ const reward = pokestop.quest_rewards ? pokestop.quest_rewards[0] : {};
+ const rewardPokemonId = reward.info.pokemon_id || 0;
+ const rewardItemId = reward.info.item_id || 0;
+ if (rewardPokemonId === pokemonId && rewardItemId === itemId) {
+ map.removeLayer(pokestop.marker);
+ }
+ });
+}
+
function getPokestopPopupContent (pokestop) {
const now = new Date();
const lureExpireDate = new Date(pokestop.lure_expire_timestamp * 1000);
@@ -3113,9 +3132,16 @@ function getPokestopPopupContent (pokestop) {
content += 'Last Updated: ' + updatedDate.toLocaleDateString() + ' ' + updatedDate.toLocaleTimeString() + ' (' + getTimeSince(updatedDate) + ')
';
}
+ const questReward = pokestop.quest_rewards ? pokestop.quest_rewards[0] : {};
+ content +=
+ '
';
+ if (pokestop.quest_type !== null) {
+ content += '