add rating algs to config.ts

This commit is contained in:
zkldi
2021-06-23 02:04:00 +01:00
parent 8e29a9d83c
commit dfa4b8519f
4 changed files with 99 additions and 1 deletions
+3
View File
@@ -12,6 +12,9 @@ interface BaseGamePTConfig<I extends IDStrings> {
defaultScoreRatingAlg: ScoreCalculatedDataLookup[I];
defaultSessionRatingAlg: SessionCalculatedDataLookup[I];
defaultProfileRatingAlg: UGSRatingsLookup[I];
scoreRatingAlgs: ScoreCalculatedDataLookup[I][];
sessionRatingAlgs: SessionCalculatedDataLookup[I][];
profileRatingAlgs: UGSRatingsLookup[I][];
difficulties: Difficulties[I][];
defaultDifficulty: Difficulties[I];
difficultyColours: Record<Difficulties[I], string | null>;
+39
View File
@@ -99,6 +99,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "ktRating",
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
sessionRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
profileRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
difficulties: ["BEGINNER", "NORMAL", "HYPER", "ANOTHER", "LEGGENDARIA"],
defaultDifficulty: "ANOTHER",
difficultyColours: {
@@ -160,6 +163,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "ktRating",
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
sessionRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
profileRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
difficulties: ["NORMAL", "HYPER", "ANOTHER", "LEGGENDARIA"],
defaultDifficulty: "ANOTHER",
difficultyColours: {
@@ -220,6 +226,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "rating",
defaultSessionRatingAlg: "naiveRating",
defaultProfileRatingAlg: "naiveRating",
scoreRatingAlgs: ["rating"],
sessionRatingAlgs: ["naiveRating"],
profileRatingAlgs: ["naiveRating"],
difficulties: ["BASIC", "ADVANCED", "EXPERT", "MASTER", "WORLD'S END"],
defaultDifficulty: "MASTER",
difficultyColours: {
@@ -265,6 +274,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "VF6",
defaultSessionRatingAlg: "ProfileVF6",
defaultProfileRatingAlg: "VF6",
scoreRatingAlgs: ["VF6"],
sessionRatingAlgs: ["ProfileVF6", "VF6"],
profileRatingAlgs: ["VF6"],
difficulties: ["NOV", "ADV", "EXH", "INF", "GRV", "HVN", "VVD", "MXM"],
defaultDifficulty: "EXH",
difficultyColours: {
@@ -312,6 +324,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "VF6",
defaultSessionRatingAlg: "ProfileVF6",
defaultProfileRatingAlg: "VF6",
scoreRatingAlgs: ["VF6"],
sessionRatingAlgs: ["ProfileVF6", "VF6"],
profileRatingAlgs: ["VF6"],
difficulties: ["NOV", "ADV", "EXH", "INF"],
defaultDifficulty: "EXH",
difficultyColours: {
@@ -355,6 +370,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "ktRating",
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating"],
sessionRatingAlgs: ["ktRating"],
profileRatingAlgs: ["ktRating"],
difficulties: ["Green", "Yellow", "Red"],
defaultDifficulty: "Red",
difficultyColours: {
@@ -399,6 +417,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "sieglinde",
defaultSessionRatingAlg: "sieglinde",
defaultProfileRatingAlg: "sieglinde",
scoreRatingAlgs: ["sieglinde"],
sessionRatingAlgs: ["sieglinde"],
profileRatingAlgs: ["sieglinde"],
difficulties: ["CHART"],
defaultDifficulty: "CHART",
difficultyColours: {
@@ -451,6 +472,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "sieglinde",
defaultSessionRatingAlg: "sieglinde",
defaultProfileRatingAlg: "sieglinde",
scoreRatingAlgs: ["sieglinde"],
sessionRatingAlgs: ["sieglinde"],
profileRatingAlgs: ["sieglinde"],
difficulties: ["CHART"],
defaultDifficulty: "CHART",
difficultyColours: {
@@ -503,6 +527,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "ktRating",
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["MFCP", "ktRating"],
sessionRatingAlgs: ["MFCP", "ktRating"],
profileRatingAlgs: ["MFCP", "ktRating"],
difficulties: ["BEGINNER", "BASIC", "DIFFICULT", "EXPERT", "CHALLENGE"],
defaultDifficulty: "EXPERT",
difficultyColours: {
@@ -585,6 +612,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "ktRating",
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["MFCP", "ktRating"],
sessionRatingAlgs: ["MFCP", "ktRating"],
profileRatingAlgs: ["MFCP", "ktRating"],
difficulties: ["BASIC", "DIFFICULT", "EXPERT", "CHALLENGE"],
defaultDifficulty: "EXPERT",
difficultyColours: {
@@ -666,6 +696,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "ktRating",
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating"],
sessionRatingAlgs: ["ktRating"],
profileRatingAlgs: ["ktRating"],
difficulties: ["Easy", "Basic", "Advanced", "Expert", "Master", "Re:Master"],
defaultDifficulty: "Master",
difficultyColours: {
@@ -717,6 +750,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "skill",
defaultSessionRatingAlg: "skill",
defaultProfileRatingAlg: "skill",
scoreRatingAlgs: ["skill"],
sessionRatingAlgs: ["skill"],
profileRatingAlgs: ["skill"],
difficulties: [
"BASIC",
"ADVANCED",
@@ -768,6 +804,9 @@ const GAME_PT_CONFIGS = {
defaultScoreRatingAlg: "skill",
defaultSessionRatingAlg: "skill",
defaultProfileRatingAlg: "skill",
scoreRatingAlgs: ["skill"],
sessionRatingAlgs: ["skill"],
profileRatingAlgs: ["skill"],
difficulties: ["BASIC", "ADVANCED", "EXTREME", "MASTER"],
defaultDifficulty: "EXTREME",
difficultyColours: {
File diff suppressed because one or more lines are too long
+56
View File
@@ -27,6 +27,10 @@ interface BaseGamePTConfig<I extends IDStrings> {
defaultSessionRatingAlg: SessionCalculatedDataLookup[I];
defaultProfileRatingAlg: UGSRatingsLookup[I];
scoreRatingAlgs: ScoreCalculatedDataLookup[I][];
sessionRatingAlgs: SessionCalculatedDataLookup[I][];
profileRatingAlgs: UGSRatingsLookup[I][];
difficulties: Difficulties[I][];
defaultDifficulty: Difficulties[I];
difficultyColours: Record<Difficulties[I], string | null>;
@@ -171,6 +175,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
sessionRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
profileRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
difficulties: ["BEGINNER", "NORMAL", "HYPER", "ANOTHER", "LEGGENDARIA"],
defaultDifficulty: "ANOTHER",
difficultyColours: {
@@ -240,6 +248,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
sessionRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
profileRatingAlgs: ["ktRating", "ktLampRating", "BPI"],
difficulties: ["NORMAL", "HYPER", "ANOTHER", "LEGGENDARIA"],
defaultDifficulty: "ANOTHER",
difficultyColours: {
@@ -307,6 +319,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "naiveRating",
defaultProfileRatingAlg: "naiveRating",
scoreRatingAlgs: ["rating"],
sessionRatingAlgs: ["naiveRating"],
profileRatingAlgs: ["naiveRating"],
difficulties: ["BASIC", "ADVANCED", "EXPERT", "MASTER", "WORLD'S END"],
defaultDifficulty: "MASTER",
difficultyColours: {
@@ -359,6 +375,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ProfileVF6",
defaultProfileRatingAlg: "VF6",
scoreRatingAlgs: ["VF6"],
sessionRatingAlgs: ["ProfileVF6", "VF6"],
profileRatingAlgs: ["VF6"],
difficulties: ["NOV", "ADV", "EXH", "INF", "GRV", "HVN", "VVD", "MXM"],
defaultDifficulty: "EXH",
difficultyColours: {
@@ -413,6 +433,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ProfileVF6",
defaultProfileRatingAlg: "VF6",
scoreRatingAlgs: ["VF6"],
sessionRatingAlgs: ["ProfileVF6", "VF6"],
profileRatingAlgs: ["VF6"],
difficulties: ["NOV", "ADV", "EXH", "INF"],
defaultDifficulty: "EXH",
difficultyColours: {
@@ -463,6 +487,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating"],
sessionRatingAlgs: ["ktRating"],
profileRatingAlgs: ["ktRating"],
difficulties: ["Green", "Yellow", "Red"],
defaultDifficulty: "Red",
difficultyColours: {
@@ -514,6 +542,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "sieglinde",
defaultProfileRatingAlg: "sieglinde",
scoreRatingAlgs: ["sieglinde"],
sessionRatingAlgs: ["sieglinde"],
profileRatingAlgs: ["sieglinde"],
difficulties: ["CHART"],
defaultDifficulty: "CHART",
difficultyColours: {
@@ -574,6 +606,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "sieglinde",
defaultProfileRatingAlg: "sieglinde",
scoreRatingAlgs: ["sieglinde"],
sessionRatingAlgs: ["sieglinde"],
profileRatingAlgs: ["sieglinde"],
difficulties: ["CHART"],
defaultDifficulty: "CHART",
difficultyColours: {
@@ -634,6 +670,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["MFCP", "ktRating"],
sessionRatingAlgs: ["MFCP", "ktRating"],
profileRatingAlgs: ["MFCP", "ktRating"],
difficulties: ["BEGINNER", "BASIC", "DIFFICULT", "EXPERT", "CHALLENGE"],
defaultDifficulty: "EXPERT",
difficultyColours: {
@@ -724,6 +764,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["MFCP", "ktRating"],
sessionRatingAlgs: ["MFCP", "ktRating"],
profileRatingAlgs: ["MFCP", "ktRating"],
difficulties: ["BASIC", "DIFFICULT", "EXPERT", "CHALLENGE"],
defaultDifficulty: "EXPERT",
difficultyColours: {
@@ -813,6 +857,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "ktRating",
defaultProfileRatingAlg: "ktRating",
scoreRatingAlgs: ["ktRating"],
sessionRatingAlgs: ["ktRating"],
profileRatingAlgs: ["ktRating"],
difficulties: ["Easy", "Basic", "Advanced", "Expert", "Master", "Re:Master"],
defaultDifficulty: "Master",
difficultyColours: {
@@ -872,6 +920,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "skill",
defaultProfileRatingAlg: "skill",
scoreRatingAlgs: ["skill"],
sessionRatingAlgs: ["skill"],
profileRatingAlgs: ["skill"],
difficulties: [
"BASIC",
"ADVANCED",
@@ -931,6 +983,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
defaultSessionRatingAlg: "skill",
defaultProfileRatingAlg: "skill",
scoreRatingAlgs: ["skill"],
sessionRatingAlgs: ["skill"],
profileRatingAlgs: ["skill"],
difficulties: ["BASIC", "ADVANCED", "EXTREME", "MASTER"],
defaultDifficulty: "EXTREME",
difficultyColours: {