From 42ddf31a379d95e8dc769582592f82bb079bea17 Mon Sep 17 00:00:00 2001 From: squaresmile Date: Wed, 14 Aug 2024 23:15:02 -0400 Subject: [PATCH] Updated bgm location --- packages/db/src/Component/Script.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/db/src/Component/Script.tsx b/packages/db/src/Component/Script.tsx index ea699936..d88fceeb 100644 --- a/packages/db/src/Component/Script.tsx +++ b/packages/db/src/Component/Script.tsx @@ -1228,14 +1228,20 @@ function parseBracketComponent(region: Region, parameters: string[], parserState case "bgm": return { type: ScriptComponentType.BGM, - bgm: getBgmObject(parameters[1], `${AssetHost}/${region}/Audio/${parameters[1]}/${parameters[1]}.mp3`), + bgm: getBgmObject( + parameters[1], + `${AssetHost}/${region}/Audio/Bgm/${parameters[1]}/${parameters[1]}.mp3` + ), volumne: parameters[2] === undefined ? undefined : parseFloat(parameters[2]), fadeinTime: parameters[3] === undefined ? undefined : parseFloat(parameters[3]), }; case "bgmStop": return { type: ScriptComponentType.BGM_STOP, - bgm: getBgmObject(parameters[1], `${AssetHost}/${region}/Audio/${parameters[1]}/${parameters[1]}.mp3`), + bgm: getBgmObject( + parameters[1], + `${AssetHost}/${region}/Audio/Bgm/${parameters[1]}/${parameters[1]}.mp3` + ), fadeoutTime: parseFloat(parameters[2]), }; case "voice":