aboutsummaryrefslogtreecommitdiffstats
path: root/src/Storage.ts
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2022-06-01 00:26:52 +0200
committerMaksymilian Jopek <maks@jopek.eu>2022-06-01 00:26:52 +0200
commit5413001f654d4ea27129cf2edfc15322f2ba27ec (patch)
treecd5c4bda29622ca5406a7f641143c7c5ead20a51 /src/Storage.ts
parent0010f2de57cfa97106432ea1849c1bb75d3d99a1 (diff)
download1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.tar.gz
1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.tar.zst
1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.zip
Spawning enemies, start Startscreen
Diffstat (limited to 'src/Storage.ts')
-rw-r--r--src/Storage.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Storage.ts b/src/Storage.ts
index 50d70a2..632ce50 100644
--- a/src/Storage.ts
+++ b/src/Storage.ts
@@ -20,7 +20,6 @@ export function getStorage(): Storage {
}
export function setStorage(s: Storage) {
- debugger
localStorage.setItem("storage", JSON.stringify(s))
}
@@ -33,7 +32,7 @@ export function getPlace(s: number): string {
place = i; break;
}
}
- if (place === 1) return "1st";
+ if (place === 1) return "top";
else if (place === 2) return "2nd";
else if (place === 3) return "3rd";
else return place + "th";