Skip to content

Commit 422d762

Browse files
committed
add more data, so bfranked doesnt have to request raw
1 parent 4057fe8 commit 422d762

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

global_mapping/readability/bf6/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ async def get_main_stats(stats_dict: dict, format_values: bool = True):
737737
"saviorKills": stats_dict.get("savior_kills_total", 0),
738738
"shotsFired": shots_fired,
739739
"shotsHit": shots_hit,
740+
"humanShotsHit": stats_dict.get("shots_hit_human_total", 0),
740741
"killAssists": stats_dict.get("assists_gm_all", 0),
741742
"vehiclesDestroyed": stats_dict.get("Destroyed_Veh_Total", 0),
742743
"enemiesSpotted": stats_dict.get("Spotted_Enemies_Total", 0),
@@ -902,6 +903,8 @@ def first(names: list[str]) -> int:
902903
score = first(["score_total"])
903904
time_played = first(["tp_level"]) # seconds
904905
extractions = first(["extract_extracted_total"])
906+
revivals = first(["Revives_Teammates_Total"])
907+
placement_last = first(["placement_last"])
905908

906909
kd = round(kills / deaths, 2) if deaths else None
907910
# winrate = round((wins / played) * 100, 2) if played else None
@@ -914,6 +917,8 @@ def first(names: list[str]) -> int:
914917
"wins": wins,
915918
"losses": losses,
916919
"kills": kills,
920+
"rivivals": revivals,
921+
"lastPlacement": placement_last,
917922
"deaths": deaths,
918923
"killDeath": kd,
919924
"score": score,

tests/bf6/used_methods.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,5 @@
169169
"Dmg_Dealt_W_Veh_Total",
170170
"Dmg_Dealt_Explosive_Total",
171171
"Kills_Parachute_Total",
172+
"shots_hit_human_total",
172173
]

0 commit comments

Comments
 (0)