feat: add highest256 support and notesPerMeasure

This commit is contained in:
zkldi
2022-06-12 16:29:25 +01:00
parent 22f3d2b334
commit b9da3dc14f
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -2289,9 +2289,11 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
scoreRatingAlgDescriptions: {
blockRating: "How much this clear is worth.",
highest32: "The highest BPM this score streamed 32 measures straight for.",
highest256: "The highest BPM this score streamed 256 measures straight for.",
},
profileRatingAlgDescriptions: {
highest32: "The highest BPM this user has streamed 32 unbroken measures at.",
highest256: "The highest BPM this user has streamed 256 unbroken measures at.",
highestBlock: "The highest block level this player has cleared.",
},
sessionRatingAlgDescriptions: {
+1
View File
@@ -393,6 +393,7 @@ function GetChartDataForGPT(idString: IDStrings): PrudenceSchema {
simplified: "string",
total: "string",
npsPerMeasure: [p.isPositive],
notesPerMeasure: [p.isPositive],
},
tech: {
crossovers: p.isPositiveInteger,
+3 -2
View File
@@ -705,7 +705,7 @@ export interface UGSRatingsLookup {
"wacca:Single": "naiveRate" | "rate";
"pms:Controller": "sieglinde";
"pms:Keyboard": "sieglinde";
"itg:Stamina": "highestBlock" | "highest32";
"itg:Stamina": "highestBlock" | "highest32" | "highest256";
}
export interface UserGameStats<I extends IDStrings = IDStrings> extends MongoDBDocument {
@@ -836,6 +836,7 @@ interface ChartDocumentData {
simplified: string;
total: string;
npsPerMeasure: Array<number>;
notesPerMeasure: Array<number>;
};
tech: {
crossovers: integer;
@@ -1194,7 +1195,7 @@ export interface ScoreCalculatedDataLookup {
"wacca:Single": "rate";
"pms:Controller": "sieglinde";
"pms:Keyboard": "sieglinde";
"itg:Stamina": "blockRating" | "highest32";
"itg:Stamina": "blockRating" | "highest32" | "highest256";
}
export interface ScoreDocument<I extends IDStrings = IDStrings> extends MongoDBDocument {