We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12ae992 commit bf9a20fCopy full SHA for bf9a20f
1 file changed
src/utils/asset.ts
@@ -18,5 +18,15 @@ export const getBgmUrl = (id: string, region: string = 'JP') => {
18
}
19
20
export const getSeUrl = (id: string, region: string = 'JP') => {
21
- return getAssetUrl(`Audio/SE/${id}.mp3`, region)
+ let folder = 'SE'
22
+ if (id.startsWith('ba')) {
23
+ folder = 'Battle'
24
+ } else if (id.startsWith('ad')) {
25
+ folder = 'SE'
26
+ } else if (id.startsWith('ar')) {
27
+ folder = 'ResidentSE'
28
+ } else if (id.startsWith('21')) {
29
+ folder = 'SE_21'
30
+ }
31
+ return getAssetUrl(`Audio/${folder}/${id}.mp3`, region)
32
0 commit comments