Skip to content

Commit 35bd207

Browse files
committed
Fix audio paths
1 parent 517d112 commit 35bd207

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

composables/actions/replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const replace: Action = (action: CardsCollectionItem['interactions'][0]['
1212
assert(card !== undefined, 'Card not found!')
1313

1414
if (action.sound) {
15-
const audio = new Audio('/sounds/' + action.sound)
15+
const audio = new Audio('/LD57/sounds/' + action.sound)
1616
audio.play()
1717
}
1818

composables/actions/spawn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const spawn: Action = (action: CardsCollectionItem['interactions'][0]['ac
1313
assert(card !== undefined, 'Card not found!')
1414

1515
if (action.sound && !action.instantSound) {
16-
const audio = new Audio('/sounds/' + action.sound)
16+
const audio = new Audio('/LD57/sounds/' + action.sound)
1717

1818
if (action.soundVolume) {
1919
audio.volume = action.soundVolume

composables/actions/trade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const trade: Action = (action: CardsCollectionItem['interactions'][0]['ac
99
assert(baseCard.buyableAmount !== undefined, 'Action `trade` requires the base card to have a buyable amount!')
1010

1111
if (action.sound && !action.instantSound) {
12-
const audio = new Audio('/sounds/' + action.sound)
12+
const audio = new Audio('/LD57/sounds/' + action.sound)
1313
audio.play()
1414
}
1515

composables/useInteraction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const useInteraction = (draggingCard: BoardCard) => {
5858
)
5959

6060
if (action) {
61-
const audio = new Audio('/sounds/' + action.sound)
61+
const audio = new Audio('/LD57/sounds/' + action.sound)
6262
audio.play()
6363
}
6464

0 commit comments

Comments
 (0)