Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function sayLine(line) {
if (game.dialog.voice.skipSpeech) {
game.dialog.textSprite.text = line;
return;
}
game.dialog.speech = baragouin(line, Object.assign({
onNote(text) {
game.dialog.textSprite.text = text;
},
onEnd(text) {
game.dialog.textSprite.text = text;
delete game.dialog.speech
}
}, game.dialog.voice));
}