From 094ad7a8925ae12f09f9a00d7e642c5b890fc0de Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Fri, 23 May 2025 14:35:55 -0400 Subject: [PATCH] Add IIDX classic game options --- .env.development | 2 +- .env.production | 2 +- public/data-sources/changelog.json | 3 +- src/constants/gameOptions/iidxClassOptions.js | 108 ++++++++++++++++++ src/constants/index.js | 2 + 5 files changed, 114 insertions(+), 3 deletions(-) create mode 100644 src/constants/gameOptions/iidxClassOptions.js diff --git a/.env.development b/.env.development index 539b5dc0..0649b7e7 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.7" +VITE_APP_VERSION="3.0.8" VITE_API_URL="http://10.5.7.5:8000/" VITE_API_KEY="your_api_key_should_be_here" VITE_ASSET_PATH="/assets" diff --git a/.env.production b/.env.production index 9c2e2790..1c1a2d70 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.7" +VITE_APP_VERSION="3.0.8" VITE_API_URL="https://restfulsleep.phaseii.network" VITE_API_KEY="your_api_key_should_be_here" VITE_ASSET_PATH="https://cdn.phaseii.network/file/PhaseII/web-assets" diff --git a/public/data-sources/changelog.json b/public/data-sources/changelog.json index 0d6b9c8f..93ab80eb 100644 --- a/public/data-sources/changelog.json +++ b/public/data-sources/changelog.json @@ -5,5 +5,6 @@ "3.0.4": ["- (Feature) Add performance event flag settings for SOUND VOLTEX EXCEED GEAR"], "3.0.5": ["- (Feature) Add profile badges based on Discord server roles. Expands Discord linking capabilities."], "3.0.6": ["- (Major) Replace non-standard game cards with a standardized and new header card. May break some layouts so PLEASE REPORT BUGS!", "- (Feature) Create song detail page, not yet completed or reactive.", "- (Bugfix) Fix issue where deleteSession fails if the session has already been deleted.", "- (Minor) Edit ring color on red buttons", "- (Admin) Add Arcades admin page", "- (Bugfix) Fix incorrect prop types for Notes Radar"], - "3.0.7": ["- (Major) Song data page now loads data. This data is quite broken for a few games so EXPECT BUGS!", "- (Optimization) Add in table data for games, still missing some data but the basics are complete now."] + "3.0.7": ["- (Major) Song data page now loads data. This data is quite broken for a few games so EXPECT BUGS!", "- (Optimization) Add in table data for games, still missing some data but the basics are complete now."], + "3.0.8": ["- (Minor) Added game event options for Classic IIDX versions"] } \ No newline at end of file diff --git a/src/constants/gameOptions/iidxClassOptions.js b/src/constants/gameOptions/iidxClassOptions.js new file mode 100644 index 00000000..8f28e654 --- /dev/null +++ b/src/constants/gameOptions/iidxClassOptions.js @@ -0,0 +1,108 @@ +export const IIDXClassOptions = { + 14: [ + { + id: "irphase", + name: "IR Beat Phase", + help: "Sets the Phase of IR Beat", + type: "Array", + options: [ + { id: 0, label: "BEAT #1" }, + { id: 1, label: "BEAT #2" }, + { id: 2, label: "BEAT #3" }, + { id: 3, label: "BEAT FREE" }, + ], + }, + ], + 15: [ + { + id: "irphase", + name: "IR Beat Phase", + help: "Sets the Phase of IR Beat", + type: "Array", + options: [ + { id: 0, label: "BEAT #1" }, + { id: 1, label: "BEAT #2" }, + { id: 2, label: "BEAT #3" }, + { id: 3, label: "BEAT FREE" }, + ], + }, + ], + 16: [ + { + id: "irphase", + name: "IR Beat Phase", + help: "Sets the Phase of IR Beat", + type: "Array", + options: [ + { id: 0, label: "BEAT #1" }, + { id: 1, label: "BEAT #2" }, + { id: 2, label: "BEAT #3" }, + { id: 3, label: "BEAT FREE" }, + ], + }, + ], + 17: [ + { + id: "irphase", + name: "IR Beat Phase", + help: "Sets the Phase of IR Beat", + type: "Array", + options: [ + { id: 0, label: "BEAT #1" }, + { id: 1, label: "BEAT #2" }, + { id: 2, label: "BEAT #3" }, + { id: 3, label: "BEAT FREE" }, + ], + }, + { + id: "disable_league", + name: "Disable League", + help: "Disables League Mode and Leagues", + type: "Boolean", + }, + ], + 18: [ + { + id: "irphase", + name: "IR Beat Phase", + help: "Sets the Phase of IR Beat", + type: "Array", + options: [ + { id: 0, label: "BEAT #1" }, + { id: 1, label: "BEAT #2" }, + { id: 2, label: "BEAT #3" }, + { id: 3, label: "BEAT FREE" }, + ], + }, + { + id: "tourmode", + name: "Tour Phase", + help: "Sets the Phase of the Tour event", + type: "Array", + options: [ + { id: 0, label: "Off" }, + { id: 1, label: "JAPAN" }, + { id: 2, label: "WORLD" }, + { id: 3, label: "JAPAN + WORLD" }, + ], + }, + { + id: "disable_league", + name: "Disable League", + help: "Disables League Mode and Leagues", + type: "Boolean", + }, + { + id: "disable_link", + name: "Disable LINCLE LINK", + help: "Disables LINCLE LINK", + type: "Boolean", + }, + { + id: "disable_story", + name: "Disable Story Mode", + help: "Disables Story Mode", + type: "Boolean", + }, + ], +}; diff --git a/src/constants/index.js b/src/constants/index.js index 12bc81e6..2447c033 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -4,6 +4,7 @@ import { DDRClassOptions } from "@/constants/gameOptions/ddrclassOptions"; import { DDROptions } from "@/constants/gameOptions/ddrOptions"; import { GFDMOptions } from "@/constants/gameOptions/gfdmOptions"; import { IIDXOptions } from "@/constants/gameOptions/iidxOptions"; +import { IIDXClassOptions } from "@/constants/gameOptions/iidxClassOptions"; import { LovePlusOptions } from "@/constants/gameOptions/lovePlusOptions"; import { MusecaOptions } from "@/constants/gameOptions/musecaOptions"; import { NostalgiaOptions } from "@/constants/gameOptions/nostalgiaOptions"; @@ -1409,6 +1410,7 @@ export const gameData = [ icon: `${ASSET_PATH}/icon/iidx.webp`, cardBG: `${ASSET_PATH}/card/iidx.webp`, assetId: "iidx", + gameOptions: IIDXClassOptions, noRivals: true, noScores: true, noRecords: true,