From b9da3dc14f3e8b585b52b4bc6cb810d8baef3260 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 12 Jun 2022 16:29:25 +0100 Subject: [PATCH] feat: add highest256 support and notesPerMeasure --- common/src/config/config.ts | 2 ++ common/src/lib/schemas.ts | 1 + common/src/types.ts | 5 +++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/src/config/config.ts b/common/src/config/config.ts index 39a6aad2d..9bdbf42a2 100644 --- a/common/src/config/config.ts +++ b/common/src/config/config.ts @@ -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: { diff --git a/common/src/lib/schemas.ts b/common/src/lib/schemas.ts index 03bea5cdb..49c02a77a 100644 --- a/common/src/lib/schemas.ts +++ b/common/src/lib/schemas.ts @@ -393,6 +393,7 @@ function GetChartDataForGPT(idString: IDStrings): PrudenceSchema { simplified: "string", total: "string", npsPerMeasure: [p.isPositive], + notesPerMeasure: [p.isPositive], }, tech: { crossovers: p.isPositiveInteger, diff --git a/common/src/types.ts b/common/src/types.ts index edad2d848..4d8109fc1 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -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 extends MongoDBDocument { @@ -836,6 +836,7 @@ interface ChartDocumentData { simplified: string; total: string; npsPerMeasure: Array; + notesPerMeasure: Array; }; 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 extends MongoDBDocument {