From 8f9f8b7b2a4c45258e14304d4fd3207deb041cfa Mon Sep 17 00:00:00 2001 From: zkldi Date: Thu, 9 Sep 2021 11:29:03 +0100 Subject: [PATCH] Add supportedVersions --- common/package.json | 2 +- common/src/config/config.ts | 78 +++++++++++++++++++++++++++++++++++-- common/src/types.ts | 2 +- 3 files changed, 77 insertions(+), 5 deletions(-) diff --git a/common/package.json b/common/package.json index e9bbd142a..3734d3930 100644 --- a/common/package.json +++ b/common/package.json @@ -1,6 +1,6 @@ { "name": "tachi-common", - "version": "0.2.8", + "version": "0.2.9", "description": "Common Types & Utilities for Tachi", "main": "js/index.js", "files": [ diff --git a/common/src/config/config.ts b/common/src/config/config.ts index 2f95b401e..b799e7235 100644 --- a/common/src/config/config.ts +++ b/common/src/config/config.ts @@ -77,6 +77,7 @@ interface BaseGamePTConfig { currentLatestVersion: GPTSupportedVersions[I] | null; currentLocalVersion: GPTSupportedVersions[I] | null; currentGameOmniVersion: GPTSupportedVersions[I] | null; + supportedVersions: GPTSupportedVersions[I][]; } interface GamePTConfigWithESD extends BaseGamePTConfig { @@ -288,6 +289,36 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "28", currentLocalVersion: "27", currentGameOmniVersion: "27-omni", + supportedVersions: [ + "3-cs", + "4-cs", + "5-cs", + "6-cs", + "7-cs", + "8-cs", + "9-cs", + "10-cs", + "11-cs", + "12-cs", + "13-cs", + "14-cs", + "15-cs", + "16-cs", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "26-omni", + "27-omni", + "2dxtra", + "bmus", + "inf", + ], }, "iidx:DP": { idString: "iidx:DP", @@ -378,6 +409,36 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "28", currentLocalVersion: "27", currentGameOmniVersion: "27-omni", + supportedVersions: [ + "3-cs", + "4-cs", + "5-cs", + "6-cs", + "7-cs", + "8-cs", + "9-cs", + "10-cs", + "11-cs", + "12-cs", + "13-cs", + "14-cs", + "15-cs", + "16-cs", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "27", + "28", + "26-omni", + "27-omni", + "2dxtra", + "bmus", + "inf", + ], }, "chunithm:Single": { idString: "chunithm:Single", @@ -453,6 +514,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "paradise", currentLocalVersion: "paradise", currentGameOmniVersion: null, + supportedVersions: ["paradise"], }, "sdvx:Single": { idString: "sdvx:Single", @@ -533,6 +595,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "vivid", currentLocalVersion: "vivid", currentGameOmniVersion: null, + supportedVersions: ["heaven", "vivid"], }, "usc:Single": { idString: "usc:Single", @@ -606,6 +669,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: null, currentLocalVersion: null, currentGameOmniVersion: null, + supportedVersions: [], }, "museca:Single": { idString: "museca:Single", @@ -669,9 +733,10 @@ const GAME_PT_CONFIGS: GamePTConfigs = { scoreBucket: "grade", - currentLatestVersion: "1+1/2", - currentGameOmniVersion: "1+1/2", - currentLocalVersion: "1+1/2", + currentLatestVersion: "1.5", + currentGameOmniVersion: "1.5-b", + currentLocalVersion: "1.5", + supportedVersions: ["1.5", "1.5-b"], }, "bms:7K": { idString: "bms:7K", @@ -749,6 +814,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: null, currentGameOmniVersion: null, currentLocalVersion: null, + supportedVersions: [], }, "bms:14K": { idString: "bms:14K", @@ -826,6 +892,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: null, currentGameOmniVersion: null, currentLocalVersion: null, + supportedVersions: [], }, "ddr:SP": { idString: "ddr:SP", @@ -945,6 +1012,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "a20", currentGameOmniVersion: null, currentLocalVersion: null, + supportedVersions: ["a20"], }, "ddr:DP": { idString: "ddr:DP", @@ -1062,6 +1130,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "a20", currentGameOmniVersion: null, currentLocalVersion: null, + supportedVersions: ["a20"], }, "maimai:Single": { idString: "maimai:Single", @@ -1143,6 +1212,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "finale", currentGameOmniVersion: null, currentLocalVersion: "finale", + supportedVersions: ["finale"], }, "gitadora:Gita": { idString: "gitadora:Gita", @@ -1234,6 +1304,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "nextage", currentGameOmniVersion: null, currentLocalVersion: "nextage", + supportedVersions: ["nextage"], }, "gitadora:Dora": { idString: "gitadora:Dora", @@ -1308,6 +1379,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = { currentLatestVersion: "nextage", currentGameOmniVersion: null, currentLocalVersion: "nextage", + supportedVersions: ["nextage"], }, }; diff --git a/common/src/types.ts b/common/src/types.ts index 0290637f9..f2ba06b78 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -761,7 +761,7 @@ export interface GPTSupportedVersions { "ddr:DP": "a20"; "maimai:Single": "finale"; "jubeat:Single": never; - "museca:Single": "1+1/2"; + "museca:Single": "1.5" | "1.5-b"; "bms:7K": never; "bms:14K": never; "chunithm:Single": "paradise";