feat: preferred game

this needs more testing
This commit is contained in:
Raymond
2025-02-26 22:36:04 -05:00
committed by Azalea
parent b23385ba28
commit d28b9bf5a8
3 changed files with 20 additions and 4 deletions

View File

@@ -42,6 +42,7 @@ export interface CardSummary {
ongeki: CardSummaryGame | null
diva: CardSummaryGame | null
wacca: CardSummaryGame | null
auto: CardSummaryGame | null // let's pretend this just doesn't exist
}

View File

@@ -1,7 +1,7 @@
import { DATA_HOST } from "./config"
import type { MusicMeta } from "./generalTypes"
export type GameName = 'mai2' | 'chu3' | 'ongeki' | 'wacca'
export type GameName = 'mai2' | 'chu3' | 'ongeki' | 'wacca' | 'auto'
const multTable = {
'mai2': [
@@ -67,7 +67,9 @@ const multTable = {
[ 60.0, 0, 'B' ],
[ 1.0, 0, 'C' ],
[ 0.0, 0, 'D' ]
]
],
'auto': []
}
export function getMult(achievement: number, game: GameName) {