From b4defa324a330217f0139f1240bcf53c0b1f996a Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Thu, 2 Jun 2022 23:13:07 +0200 Subject: v1.0.0 --- src/Storage.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Storage.ts') 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) { -- cgit v1.3.1