diff --git a/main.js b/main.js index e9cdf63..c8a04d7 100644 --- a/main.js +++ b/main.js @@ -209,13 +209,13 @@ document.getElementById("wipe-game").addEventListener("click", () => { } }) -try { +if (localStorage.getItem("nif's-infinite-generators")) { let falsePlayer = JSON.parse(atob(localStorage.getItem("nif's-infinite-generators"))) player = {...player, ...falsePlayer} if (falsePlayer.unlocked) player.unlocked = {...player.unlocked, ...falsePlayer.unlocked} if (falsePlayer.cupgs) player.cupgs = [...player.cupgs, ...falsePlayer.cupgs] for (const i in player.gens) newGenerator(Number(i)) -} catch (TypeError) {} +} function updateVars() { const dt = 0.05