add sound effect for NPC speech interaction

This commit is contained in:
2026-03-24 09:48:19 +01:00
parent b20f423348
commit 6ef2391719
2 changed files with 2 additions and 0 deletions

View File

@@ -301,6 +301,7 @@ public class UI {
char[] characters = tradingNPC.dialogue[tradingNPC.dialogueSet][tradingNPC.dialogueIndex].toCharArray();
if(charIndex < characters.length) {
String s = String.valueOf(characters[charIndex]);
panel.playSE(17);
combinedText = combinedText + s;
currentDialogue = combinedText;
charIndex++;

View File

@@ -37,6 +37,7 @@ public class Sound {
load(14, "assets/sounds/sleep.wav");
load(15, "assets/sounds/blocked.wav");
load(16, "assets/sounds/parry.wav");
load(17, "assets/sounds/speak.wav");
}
@Deprecated