@@ -26,20 +26,20 @@ def parse_action_71094(action_type, player_id, raw):
2626 elif command_id in [13 , 14 , 17 , 18 ]:
2727 payload ['number' ] = unpack ('<4xh' , data )
2828 if action_type is Action .DE_QUEUE :
29- selected , building_type , unit_id , amount , * object_ids = unpack ('<h4xhhh ' , data )
29+ selected , building_type , unit_id , amount , * object_ids = unpack ('<h4xhhh4x ' , data )
3030 object_ids = list (unpack (f'<{ selected } I' , data , shorten = False ))
3131 payload = dict (object_ids = object_ids , amount = amount , unit_id = unit_id )
3232 if action_type is Action .MOVE :
3333 x , y , selected = unpack ('<4x2fh' , data )
3434 object_ids = []
35- data .read (4 )
35+ data .read (6 )
3636 if selected > 0 :
3737 object_ids = list (unpack (f'<{ selected } I' , data , shorten = False ))
3838 payload = dict (object_ids = object_ids , x = x , y = y )
3939 if action_type is Action .ORDER :
4040 target_id , x , y , selected = unpack ('<I2fh' , data )
4141 object_ids = []
42- data .read (4 )
42+ data .read (6 )
4343 if selected > 0 :
4444 object_ids = list (unpack (f'<{ selected } I' , data , shorten = False ))
4545 payload = dict (object_ids = object_ids , target_id = target_id , x = x , y = y )
@@ -48,7 +48,7 @@ def parse_action_71094(action_type, player_id, raw):
4848 object_ids = list (unpack (f'{ selected } I' , data , shorten = False ))
4949 payload = dict (building_id = building_id , object_ids = object_ids , x = x , y = y )
5050 if action_type is Action .GATHER_POINT :
51- selected , x , y , target_id , target_type = unpack ('<h2xffii ' , data )
51+ selected , x , y , target_id , target_type = unpack ('<h2xffiix ' , data )
5252 object_ids = list (unpack (f'{ selected } I' , data , shorten = False ))
5353 payload = dict (target_id = target_id , target_type = target_type , x = x , y = y , object_ids = object_ids )
5454 if action_type is Action .DE_MULTI_GATHERPOINT :
0 commit comments