From a3e2d9200049a62afeee67e4da546fe4f62ca4b6 Mon Sep 17 00:00:00 2001 From: auto-deploy Date: Thu, 14 Nov 2024 22:19:49 +0000 Subject: [PATCH] [v0.10.22] Live website --- docs/scripts/script.min.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/scripts/script.min.js b/docs/scripts/script.min.js index e8a4a642ec..ad77c0efeb 100644 --- a/docs/scripts/script.min.js +++ b/docs/scripts/script.min.js @@ -4867,6 +4867,17 @@ class Update { playerData._townName = 'Pokémon HQ Lab'; } }, + '0.10.23': ({ playerData, saveData, settingsData }) => { + var _a; + // Remove easier-to-fix locale misformatting from underground grid item tiles + (_a = saveData.underground) === null || _a === void 0 ? void 0 : _a.mine.grid.map(t => t.reward).filter(r => r).forEach(r => { + if (!r.backgroundPosition.match(/^\d+% \d+%$/)) { + r.backgroundPosition = r.backgroundPosition.replaceAll(',', '.'); + r.backgroundPosition = r.backgroundPosition.replace(/^([\d.]+)\s% ([\d.]+)\s%$/, '$1% $2%'); + r.backgroundPosition = r.backgroundPosition.replace(/^%\s([\d.]+) %\s([\d.]+)$/, '$1% $2%'); + } + }); + }, }; const saveData = this.getSaveData(); if (saveData) {