Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay5379 authored Mar 25, 2024
1 parent a260cc0 commit 552f823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/wt_client_replay_parser/formats/parse_datablocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def parse_datablocks(path:str):
unit_data=(
f'unitId:i={unit_id}\n'
f'vehicle:t="{vehicle}"\n'
f'weaponPreset:t="{weapon_preset}"\n'
f'weapon:t="{weapon_preset}"\n'
f'skin:t="{skin}"'
)

Expand Down Expand Up @@ -139,7 +139,7 @@ def parse_datablocks(path:str):
unit_data=(
f'unitId:i={unit_id}\n'
f'vehicle:t="{vehicle}"\n'
f'weaponPreset:t="{weapon_preset}"\n'
f'weapon:t="{weapon_preset}"\n'
f'skin:t="{skin}"'
)

Expand Down
2 changes: 1 addition & 1 deletion src/wt_client_replay_parser/formats/parse_replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def parse_replay(file):
vehicles.append(
{
"vehicle": v,
"weaponPreset": w,
"weapon": w,
"skin" : s,
"numAppearances": len([u for u in units if u["unit_id"] == uid and u["vehicle"] == v])
}
Expand Down

0 comments on commit 552f823

Please sign in to comment.