same as last commit but in a better way
Signed-off-by: nif <nif@incremental.social>
This commit is contained in:
parent
ed8777f56f
commit
7d1aaebc5b
1 changed files with 2 additions and 2 deletions
4
main.js
4
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
|
||||
|
|
Loading…
Reference in a new issue