[+] Add wacca to frontend

This commit is contained in:
Azalea
2024-03-29 08:20:37 -04:00
parent 341be8bdc1
commit cd972b5c61
4 changed files with 19 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
export type GameName = 'mai2' | 'chu3' | 'ongeki'
export type GameName = 'mai2' | 'chu3' | 'ongeki' | 'wacca'
const multTable = {
'mai2': [
@@ -41,6 +41,19 @@ const multTable = {
[ 70.0, 0, 'B' ],
[ 50.0, 0, 'C' ],
[ 0.0, 0, 'D' ]
],
'wacca': [
[ 100.0, 0, 'AP' ],
[ 98.0, 0, 'SSS' ],
[ 95.0, 0, 'SS' ],
[ 90.0, 0, 'S' ],
[ 85.0, 0, 'AAA' ],
[ 80.0, 0, 'AA' ],
[ 70.0, 0, 'A' ],
[ 60.0, 0, 'B' ],
[ 1.0, 0, 'C' ],
[ 0.0, 0, 'D' ]
]
}
@@ -52,4 +65,4 @@ export function getMult(achievement: number, game: GameName) {
if (achievement >= (mt[i][0] as number)) return mt[i]
}
return [ 0, 0, 0 ]
}
}