Skip to content

Commit

Permalink
feat: handle multiple room object tag ids
Browse files Browse the repository at this point in the history
  • Loading branch information
KatoakDR committed Jan 1, 2024
1 parent 4240ba8 commit 06c0923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electron/main/game/game.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ const ROOM_ID_TO_EVENT_PROPERTY_MAP: Record<string, keyof RoomGameEvent> = {
'room name': 'roomName',
'room desc': 'roomDescription',
'room creatures': 'roomCreatures',
'room objects': 'roomObjects',
'room objects': 'roomObjects', // sometimes the tag id is long
'room objs': 'roomObjects', // sometimes it's short
'room players': 'roomPlayers',
'room exits': 'roomExits',
};
Expand Down

0 comments on commit 06c0923

Please sign in to comment.