Skip to content

Commit

Permalink
Updated bgm location
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Aug 15, 2024
1 parent 43946b4 commit 42ddf31
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/db/src/Component/Script.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 42ddf31

Please sign in to comment.