Skip to content

Commit

Permalink
add S tierlists for sdvx
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshikara committed Dec 10, 2024
1 parent 75f4bcb commit 0ac2e57
Show file tree
Hide file tree
Showing 4 changed files with 9,545 additions and 1,574 deletions.
13 changes: 11 additions & 2 deletions client/src/lib/games/sdvx-usc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NumericSOV } from "util/sorts";
import { ChangeOpacity } from "util/color-opacity";
import { FormatMillions } from "util/misc";
import { GPTClientImplementation } from "lib/types";
import { COLOUR_SET, GPTStrings } from "tachi-common";
import { COLOUR_SET, GPTStrings, SDVX_GRADES } from "tachi-common";
import MillionsScoreCell from "components/tables/cells/MillionsScoreCell";
import SDVXJudgementCell from "components/tables/cells/SDVXJudgementCell";
import SDVXLampCell from "components/tables/cells/SDVXLampCell";
Expand Down Expand Up @@ -152,14 +152,23 @@ export const SDVX_IMPL: GPTClientImplementation<"sdvx:Single"> = {
},
ratingSystems: [
CreateRatingSys(
"Tierlist",
"Clear Tierlist",
"The unofficial SDVX clearing tierlist",
"lamp",
(c) => c.data.clearTier?.value,
(c) => c.data.clearTier?.text,
(c) => c.data.clearTier?.individualDifference,
(s) => [s.scoreData.lamp, s.scoreData.lamp !== "FAILED"]
),
CreateRatingSys(
"S Tierlist",
"Tierlist ratings for S grade",
"grade",
(c) => c.data.sTier?.value,
(c) => c.data.sTier?.text,
(c) => c.data.sTier?.individualDifference,
(s) => [s.scoreData.grade, s.scoreData.enumIndexes.grade >= SDVX_GRADES.S]
),
],
scoreHeaders: [
["Score", "Score", NumericSOV((x) => x?.scoreData.score)],
Expand Down
1 change: 1 addition & 0 deletions common/src/config/game-support/sdvx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export const SDVX_SINGLE_CONF = {
chartData: z.strictObject({
inGameID: zodNonNegativeInt,
clearTier: zodTierlistData,
sTier: zodTierlistData,
}),

preferences: z.strictObject({ vf6Target: z.number().optional().nullable() }),
Expand Down
Loading

0 comments on commit 0ac2e57

Please sign in to comment.