Skip to content

Commit c59c8a8

Browse files
committed
feat: handle spell and hand items
1 parent c5b74c6 commit c59c8a8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

electron/main/game/game.parser.ts

+18
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,24 @@ export class GameParserImpl implements GameParser {
391391
// In this example, the text would be '>'.
392392
this.gameText += text;
393393
break;
394+
case 'spell':
395+
// This is a spell name.
396+
// Example: `<spell>Fire Shards</spell>`
397+
// In this example, the text would be 'Fire Shards'.
398+
this.gameText += text;
399+
break;
400+
case 'left':
401+
// This is the name of the item in the character's left hand.
402+
// Example: `<left>red backpack</left>`
403+
// In this example, the text would be 'red backpack'.
404+
this.gameText += text;
405+
break;
406+
case 'right':
407+
// This is the name of the item in the character's right hand.
408+
// Example: `<right>Empty</right>`
409+
// In this example, the text would be 'Empty'.
410+
this.gameText += text;
411+
break;
394412
}
395413
}
396414

0 commit comments

Comments
 (0)