feat(client): chunithm graphs, song durations (#1284)

* feat: chunithm score graph

* feat: add life

* feat: add song duration data for all songs

* fix: make chunithm graphs non-nullable

* fix: test data

* fix: potrząsanie kanalizacją

* fix: misleading old function name

* fix: make duration optional for chunithm

* fix: add the missing duration
This commit is contained in:
nairobi
2025-04-29 20:33:49 +01:00
committed by GitHub
parent ab9474a6fa
commit 1148a5fdff
15 changed files with 3192 additions and 66 deletions
@@ -11,6 +11,7 @@ export const CHUNITHM_CONF = {
songData: z.strictObject({
genre: z.string(),
displayVersion: z.string(),
duration: z.number().optional(),
}),
} as const satisfies INTERNAL_GAME_CONFIG;
@@ -87,6 +88,16 @@ export const CHUNITHM_SINGLE_CONF = {
optionalMetrics: {
...FAST_SLOW_MAXCOMBO,
scoreGraph: {
type: "GRAPH",
validate: p.isBetween(0, 1010000),
description: "The history of the projected score, queried in one-second intervals.",
},
lifeGraph: {
type: "GRAPH",
validate: p.isBetween(0, 999),
description: "Challenge gauge history, queried in one-second intervals.",
},
},
scoreRatingAlgs: {
+1
View File
@@ -19,6 +19,7 @@ export const ONGEKI_CONF = {
"LUNATIC",
"ボーナストラック",
]),
duration: z.number(),
}),
} as const satisfies INTERNAL_GAME_CONFIG;