diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2022-06-02 23:13:07 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2022-06-02 23:16:33 +0200 |
| commit | b4defa324a330217f0139f1240bcf53c0b1f996a (patch) | |
| tree | deabb94fd351b10d3d6b38d967424149536b3927 /src/Storage.ts | |
| parent | ef76266d1a61c02f1721efedc830fab12279d2b9 (diff) | |
| download | 1942-b4defa324a330217f0139f1240bcf53c0b1f996a.tar.gz 1942-b4defa324a330217f0139f1240bcf53c0b1f996a.tar.zst 1942-b4defa324a330217f0139f1240bcf53c0b1f996a.zip | |
v1.0.0
Diffstat (limited to 'src/Storage.ts')
| -rw-r--r-- | src/Storage.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Storage.ts b/src/Storage.ts index 2307846..8f40ed6 100644 --- a/src/Storage.ts +++ b/src/Storage.ts @@ -12,9 +12,10 @@ export function getStorage(): Storage { { name: "...".split(''), score: "35000", world: "02" }, { name: "...".split(''), score: "30000", world: "01" }, { name: "...".split(''), score: "25000", world: "01" }, - { name: "...".split(''), score: "20000", world: "01" }, - { name: "...".split(''), score: "15000", world: "01" }, + { name: "...".split(''), score: "00000", world: "01" }, + { name: "...".split(''), score: "00000", world: "01" }, ] as Storage; + if (s[1] == null) return storage return s; } @@ -29,7 +30,7 @@ export function getHighscore() { export function getPlace(s: number): string { const storage = getStorage(); - let place = 7 + let place = 6 for (let i = 1; i <= storage.length; i++) { let sc = parseInt(storage[i - 1]['score']); if (s > sc) { |
