diff --git a/src/wt_client_replay_parser/formats/parse_datablocks.py b/src/wt_client_replay_parser/formats/parse_datablocks.py index d3984af..c003ea3 100644 --- a/src/wt_client_replay_parser/formats/parse_datablocks.py +++ b/src/wt_client_replay_parser/formats/parse_datablocks.py @@ -88,7 +88,7 @@ def parse_datablocks(path:str): unit_data=( f'unitId:i={unit_id}\n' f'vehicle:t="{vehicle}"\n' - f'weapon:t="{weapon_preset}"\n' + f'weaponPreset:t="{weapon_preset}"\n' f'skin:t="{skin}"' ) @@ -139,7 +139,7 @@ def parse_datablocks(path:str): unit_data=( f'unitId:i={unit_id}\n' f'vehicle:t="{vehicle}"\n' - f'weapon:t="{weapon_preset}"\n' + f'weaponPreset:t="{weapon_preset}"\n' f'skin:t="{skin}"' ) diff --git a/src/wt_client_replay_parser/formats/parse_replay.py b/src/wt_client_replay_parser/formats/parse_replay.py index 3031c0a..cc97863 100644 --- a/src/wt_client_replay_parser/formats/parse_replay.py +++ b/src/wt_client_replay_parser/formats/parse_replay.py @@ -20,7 +20,7 @@ def parse_replay(file): vehicles.append( { "vehicle": v, - "weapon": w, + "weaponPreset": w, "skin" : s, "numAppearances": len([u for u in units if u["unit_id"] == uid and u["vehicle"] == v]) }