From 9c59b23f92fb4ccdd197d0ba67d10f1b742a2eb8 Mon Sep 17 00:00:00 2001 From: zkldi Date: Thu, 9 Sep 2021 10:21:13 +0100 Subject: [PATCH] Add PUC as a real SDVX grade --- common/src/config/config.ts | 10 ++++++---- common/src/types.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/common/src/config/config.ts b/common/src/config/config.ts index 3d7e3d91c..2f95b401e 100644 --- a/common/src/config/config.ts +++ b/common/src/config/config.ts @@ -491,7 +491,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { MXM: COLOUR_SET.white, }, - grades: ["D", "C", "B", "A", "A+", "AA", "AA+", "AAA", "AAA+", "S"], + grades: ["D", "C", "B", "A", "A+", "AA", "AA+", "AAA", "AAA+", "S", "PUC"], gradeColours: { D: COLOUR_SET.gray, C: COLOUR_SET.red, @@ -503,9 +503,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = { AAA: COLOUR_SET.gold, "AAA+": COLOUR_SET.vibrantYellow, S: COLOUR_SET.teal, + PUC: COLOUR_SET.pink, }, clearGrade: "A", - gradeBoundaries: [0, 70, 80, 87, 90, 93, 95, 97, 98, 99], + gradeBoundaries: [0, 70, 80, 87, 90, 93, 95, 97, 98, 99, 100], lamps: ["FAILED", "CLEAR", "EXCESSIVE CLEAR", "ULTIMATE CHAIN", "PERFECT ULTIMATE CHAIN"], lampColours: { @@ -566,7 +567,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { INF: COLOUR_SET.vibrantPink, }, - grades: ["D", "C", "B", "A", "A+", "AA", "AA+", "AAA", "AAA+", "S"], + grades: ["D", "C", "B", "A", "A+", "AA", "AA+", "AAA", "AAA+", "S", "PUC"], gradeColours: { D: COLOUR_SET.gray, C: COLOUR_SET.red, @@ -578,9 +579,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = { AAA: COLOUR_SET.gold, "AAA+": COLOUR_SET.vibrantYellow, S: COLOUR_SET.teal, + PUC: COLOUR_SET.pink, }, clearGrade: "A", - gradeBoundaries: [0, 70, 80, 87, 90, 93, 95, 97, 98, 99], + gradeBoundaries: [0, 70, 80, 87, 90, 93, 95, 97, 98, 99, 100], lamps: ["FAILED", "CLEAR", "EXCESSIVE CLEAR", "ULTIMATE CHAIN", "PERFECT ULTIMATE CHAIN"], lampColours: { diff --git a/common/src/types.ts b/common/src/types.ts index 0e23d6a29..0290637f9 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -156,7 +156,7 @@ export interface Playtypes { } type IIDXGrades = "F" | "E" | "D" | "C" | "B" | "A" | "AA" | "AAA" | "MAX-" | "MAX"; -type SDVXGrades = "D" | "C" | "B" | "A" | "A+" | "AA" | "AA+" | "AAA" | "AAA+" | "S"; +type SDVXGrades = "D" | "C" | "B" | "A" | "A+" | "AA" | "AA+" | "AAA" | "AAA+" | "S" | "PUC"; type DDRGrades = | "D" | "D+"