diff --git a/client/src/components/tables/cells/FlareCell.tsx b/client/src/components/tables/cells/FlareCell.tsx new file mode 100644 index 000000000..81e19ca1b --- /dev/null +++ b/client/src/components/tables/cells/FlareCell.tsx @@ -0,0 +1,13 @@ +import React from "react"; + +export default function FlareCell({ value }: { value: string }) { + return ( + + {value} + + ); +} diff --git a/client/src/lib/games/ddr.tsx b/client/src/lib/games/ddr.tsx index a336bc93f..040bd25a0 100644 --- a/client/src/lib/games/ddr.tsx +++ b/client/src/lib/games/ddr.tsx @@ -8,6 +8,7 @@ import RatingCell from "components/tables/cells/RatingCell"; import LampCell from "../../components/tables/cells/LampCell"; import DDRScoreCell from "../../components/tables/cells/DDRScoreCell"; import { bg, bgc } from "./_util"; +import FlareCell from "../../components/tables/cells/FlareCell"; const DDR_ENUM_COLOURS: GPTClientImplementation["enumColours"] = { grade: { @@ -51,6 +52,7 @@ const DDR_DIFF_COLOURS: GPTClientImplementation["difficultyCo const DDR_HEADERS: GPTClientImplementation<"ddr:SP" | "ddr:DP">["scoreHeaders"] = [ ["Score", "Score", NumericSOV((x) => x.scoreData.score)], ["Lamp", "Lamp", NumericSOV((x) => x.scoreData.enumIndexes.lamp)], + ["Flare", "Flare", NumericSOV((x) => x.scoreData.optional.enumIndexes.flare ?? 0)], ]; const DDR_COLOURS: GPTClientImplementation<"ddr:SP" | "ddr:DP">["classColours"] = { @@ -110,6 +112,7 @@ const DDRCoreCells: GPTClientImplementation["scoreCoreCells"] score={sc.scoreData.score} /> + ); diff --git a/server/src/game-implementations/games/ddr.ts b/server/src/game-implementations/games/ddr.ts index 9a5b7382e..96b0e3634 100644 --- a/server/src/game-implementations/games/ddr.ts +++ b/server/src/game-implementations/games/ddr.ts @@ -32,10 +32,6 @@ interface PBScoreDocumentWithSong extends PBScoreDocument<"ddr:DP" | "ddr:SP"> { top?: number; } -const FLARE_0_POINTS = [ - 145, 155, 170, 185, 205, 230, 255, 290, 335, 400, 465, 510, 545, 575, 600, 620, 635, 650, 665, -]; - const DDR_GOAL_FMT: GPTGoalFormatters<"ddr:DP" | "ddr:SP"> = { score: GoalFmtScore, };