From d9bee511001fd6e62152fab260e4efbfa402cff6 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 12 Jun 2022 16:35:15 +0100 Subject: [PATCH] feat: add average32speed and patch bug --- common/src/config/config.ts | 7 ++++--- common/src/types.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/src/config/config.ts b/common/src/config/config.ts index 9bdbf42a2..2d7498224 100644 --- a/common/src/config/config.ts +++ b/common/src/config/config.ts @@ -2282,9 +2282,9 @@ const GAME_PT_CONFIGS: GamePTConfigs = { defaultSessionRatingAlg: "blockRating", defaultProfileRatingAlg: "highestBlock", - scoreRatingAlgs: ["blockRating", "highest32"], - sessionRatingAlgs: ["blockRating"], - profileRatingAlgs: ["highest32", "highestBlock"], + scoreRatingAlgs: ["blockRating", "highest32", "highest256"], + sessionRatingAlgs: ["blockRating", "average32speed"], + profileRatingAlgs: ["highest32", "highestBlock", "highest256"], scoreRatingAlgDescriptions: { blockRating: "How much this clear is worth.", @@ -2298,6 +2298,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { }, sessionRatingAlgDescriptions: { blockRating: "An average of your best 5 block levels cleared this session.", + average32speed: "An average of your fastest 5 32 measure runs this session.", }, scoreRatingAlgFormatters: {}, diff --git a/common/src/types.ts b/common/src/types.ts index ba375c810..e16a923a5 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -476,7 +476,7 @@ export interface SessionCalculatedDataLookup { "wacca:Single": "rate"; "pms:Controller": "sieglinde"; "pms:Keyboard": "sieglinde"; - "itg:Stamina": "blockRating"; + "itg:Stamina": "blockRating" | "average32speed"; } export interface SessionDocument extends MongoDBDocument {