add sound effect for NPC speech interaction
This commit is contained in:
@@ -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++;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user