Skip to content

Commit

Permalink
[v0.10.22] Live website
Browse files Browse the repository at this point in the history
  • Loading branch information
auto-deploy committed Nov 14, 2024
1 parent d5bc550 commit a3e2d92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/scripts/script.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a3e2d92

Please sign in to comment.