Skip to content

Commit c1aeac8

Browse files
committed
fix(parser): output speech, whisper, and thought text from game
1 parent eef4e12 commit c1aeac8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

electron/main/game/game.parser.ts

+5
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,11 @@ export class GameParserImpl implements GameParser {
337337
// In this example, the text would be 'The hustle...'.
338338
if (tagId === 'roomDesc') {
339339
this.gameText += text;
340+
}
341+
// This is a style information tag about talking or thinking.
342+
// Example: `<preset id='speech'>You say</preset>, "Hello."`
343+
else if (['speech', 'whisper', 'thought'].includes(tagId)) {
344+
this.gameText += text;
340345
} else {
341346
const componentTag = this.getAncestorTag('component');
342347
// This is updated information about the character's experience.

0 commit comments

Comments
 (0)