Skip to content

Commit

Permalink
fix: DDR score validation with judgements using step counts (#1164)
Browse files Browse the repository at this point in the history
* fix: DDR score validation with judgements using step counts for accurate computation

* feat: parse step counts from SSQ files

* chore: lint fix
  • Loading branch information
Gyoo authored Sep 23, 2024
1 parent 95a44f0 commit 5fefa61
Show file tree
Hide file tree
Showing 10 changed files with 19,212 additions and 8,940 deletions.
2 changes: 2 additions & 0 deletions common/src/config/game-support/ddr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const DDR_CONF = {
songData: z.strictObject({
inGameID: zodNonNegativeInt,
flareCategory: DDR_FLARE_CATEGORIES,
basename: z.string().optional(),
}),
} as const satisfies INTERNAL_GAME_CONFIG;

Expand Down Expand Up @@ -185,6 +186,7 @@ export const DDR_SP_CONF = {

chartData: z.strictObject({
inGameID: zodNonNegativeInt,
stepCount: zodNonNegativeInt.optional(),
}),

preferences: z.strictObject({}),
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5fefa61

Please sign in to comment.