From 926f7ab06190781711076e3c83f35c390104ac17 Mon Sep 17 00:00:00 2001 From: Yay5379 <61430523+Yay5379@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:06:52 -0500 Subject: [PATCH] Add files via upload --- src/wt_client_replay_parser/formats/parse_datablocks.py | 4 ++-- src/wt_client_replay_parser/formats/parse_replay.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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]) }