Fix chunithm grades

This commit is contained in:
zkldi
2021-12-16 22:52:08 +00:00
parent b291daa507
commit 2c59676c4f
2 changed files with 15 additions and 7 deletions
+11 -1
View File
@@ -17,7 +17,17 @@ t.test("#GetGamePTConfig", (t) => {
const gameConfig = GetGameConfig(game);
for (const playtype of gameConfig.validPlaytypes) {
t.equal(GetGamePTConfig(game, playtype).idString, `${game}:${playtype}`);
const conf = GetGamePTConfig(game, playtype);
t.equal(
conf.idString,
`${game}:${playtype}`,
`Should return the right GamePTConfig (${game} ${playtype})`
);
t.equal(
conf.gradeBoundaries.length,
conf.grades.length,
`Should have the same amount of grades as grade boundaries. (${game} ${playtype})`
);
}
}
+4 -6
View File
@@ -567,13 +567,12 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
profileRatingAlgFormatters: {},
sessionRatingAlgFormatters: {},
difficulties: ["BASIC", "ADVANCED", "EXPERT", "MASTER", "WORLD'S END"],
difficulties: ["BASIC", "ADVANCED", "EXPERT", "MASTER"],
shortDifficulties: {
BASIC: "B",
ADVANCED: "A",
EXPERT: "E",
MASTER: "M",
"WORLD'S END": "W",
},
defaultDifficulty: "MASTER",
difficultyColours: {
@@ -581,7 +580,6 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
ADVANCED: COLOUR_SET.orange,
EXPERT: COLOUR_SET.red,
MASTER: COLOUR_SET.purple,
"WORLD'S END": COLOUR_SET.vibrantYellow,
},
grades: ["D", "C", "B", "BB", "BBB", "A", "AA", "AAA", "S", "SS", "SSS"],
@@ -599,7 +597,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
SSS: COLOUR_SET.teal,
},
clearGrade: "A",
gradeBoundaries: [0, 50, 60, 70, 80, 90, 92.5, 95.0, 97.5, 100, 100.75, 101],
gradeBoundaries: [0, 50, 60, 70, 80, 90, 92.5, 95.0, 97.5, 100, 100.75],
lamps: ["FAILED", "CLEAR", "FULL COMBO", "ALL JUSTICE", "ALL JUSTICE CRITICAL"],
lampColours: {
@@ -925,8 +923,8 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
currentLocalVersion: "1.5",
supportedVersions: ["1.5", "1.5-b"],
tierlists: ["tachi-score"],
tierlistDescriptions: { "tachi-score": "MUSECA chart ratings based on timing difficulty." },
tierlists: [],
tierlistDescriptions: {},
},
"bms:7K": {
idString: "bms:7K",