Skip to content

Commit 06c0923

Browse files
committed
feat: handle multiple room object tag ids
1 parent 4240ba8 commit 06c0923

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

electron/main/game/game.parser.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ const ROOM_ID_TO_EVENT_PROPERTY_MAP: Record<string, keyof RoomGameEvent> = {
6767
'room name': 'roomName',
6868
'room desc': 'roomDescription',
6969
'room creatures': 'roomCreatures',
70-
'room objects': 'roomObjects',
70+
'room objects': 'roomObjects', // sometimes the tag id is long
71+
'room objs': 'roomObjects', // sometimes it's short
7172
'room players': 'roomPlayers',
7273
'room exits': 'roomExits',
7374
};

0 commit comments

Comments
 (0)