feat: refactor to use arbitrary strings as itg difficulties, store difficulty tag elsewhere

This commit is contained in:
zkldi
2022-06-12 13:51:15 +01:00
parent a4619750ee
commit 390197cf8e
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -2302,6 +2302,9 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
profileRatingAlgFormatters: {},
sessionRatingAlgFormatters: {},
// This is quirky (lol)
// ITG difficulties can be any string they want to be. We just support some
// hardcoded defaults.
difficulties: ["Beginner", "Easy", "Medium", "Hard", "Challenge"],
shortDifficulties: {
Beginner: "B",
+2 -1
View File
@@ -337,7 +337,7 @@ export interface Difficulties {
"wacca:Single": "NORMAL" | "HARD" | "EXPERT" | "INFERNO";
"pms:Controller": "CHART";
"pms:Keyboard": "CHART";
"itg:Stamina": "Beginner" | "Easy" | "Medium" | "Hard" | "Challenge";
"itg:Stamina": string;
}
/**
@@ -829,6 +829,7 @@ interface ChartDocumentData {
"pms:Keyboard": CDDataBMS;
"itg:Stamina": {
chartHash: string;
difficultyTag: "Beginner" | "Easy" | "Medium" | "Hard" | "Challenge";
breakdown: {
detailed: string;
partiallySimplified: string;