mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 22:59:52 +03:00
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:
@@ -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: {
|
||||
|
||||
@@ -19,6 +19,7 @@ export const ONGEKI_CONF = {
|
||||
"LUNATIC",
|
||||
"ボーナストラック",
|
||||
]),
|
||||
duration: z.number(),
|
||||
}),
|
||||
} as const satisfies INTERNAL_GAME_CONFIG;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user