diff --git a/src/configs/default.json b/src/configs/default.json index e285c75e..0022562c 100644 --- a/src/configs/default.json +++ b/src/configs/default.json @@ -257,5 +257,8 @@ 407,416,424,429,430,433,438,439,440,442,446,447,448,458,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,532,533,534,559, 560,599,600,601,627,628 ] - } + }, + "shinyRates": { + "129-f253": 512 + } } diff --git a/src/data/default.js b/src/data/default.js index d08cfd57..ae9efb43 100644 --- a/src/data/default.js +++ b/src/data/default.js @@ -38,6 +38,5 @@ data.default_show_submission_cells = config.map.filters.submissionCells; data.default_show_nests = config.map.filters.nests; data.default_show_scan_areas = config.map.filters.scanAreas; data.default_show_devices = config.map.filters.devices; -data.pokemon_rarity_json = JSON.stringify(config.rarity); module.exports = data; diff --git a/src/routes/ui.js b/src/routes/ui.js index 234f8d1f..6f0e1792 100644 --- a/src/routes/ui.js +++ b/src/routes/ui.js @@ -193,6 +193,9 @@ const handlePage = async (req, res) => { data.min_zoom = config.map.minZoom || 10; data.max_zoom = config.map.maxZoom || 18; + data.pokemon_rarity_json = JSON.stringify(config.rarity); + data.pokemon_shiny_rates_json = JSON.stringify(config.shinyRates); + data.locale_last_modified = (await fs.promises.stat(path.resolve(__dirname, `../../static/locales/${data.locale}.json`))).mtimeMs; data.css_last_modified = (await fs.promises.stat(path.resolve(__dirname, '../../static/css/index.css'))).mtimeMs; data.js_last_modified = (await fs.promises.stat(path.resolve(__dirname, '../../static/js/index.js'))).mtimeMs; diff --git a/src/views/index.mustache b/src/views/index.mustache index 41cf0020..5baa5120 100644 --- a/src/views/index.mustache +++ b/src/views/index.mustache @@ -2,6 +2,7 @@ {{> navbar}}