mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 10:17:05 +02:00
Add allies/enemies categorizations: xxx_damage_dealt, xxx_wins, process_battle_results(): Fix bug filter(s)
This commit is contained in:
1 parent
521986adf1
commit
d847a394a9
1 file changed
+5
-3
@@ -205,7 +205,11 @@ class BattleCategorizationList():
|
|||||||
'battle_duration' : [ 'Battle Duration', 'bucket', [ x*60 for x in range(0,8) ], 'int' ],
|
'battle_duration' : [ 'Battle Duration', 'bucket', [ x*60 for x in range(0,8) ], 'int' ],
|
||||||
'distance_travelled' : [ 'Distance Driven', 'bucket', [ x*250 for x in range(0,20) ], 'int' ],
|
'distance_travelled' : [ 'Distance Driven', 'bucket', [ x*250 for x in range(0,20) ], 'int' ],
|
||||||
'allies_wins' : [ 'Allies WR', 'bucket', [ 0, .35, .45, .50, .55, .65], '%' ],
|
'allies_wins' : [ 'Allies WR', 'bucket', [ 0, .35, .45, .50, .55, .65], '%' ],
|
||||||
|
'allies_battles' : [ 'Player Battles', 'bucket', [ 0, 500, 1000, 2500, 5e3, 10e3, 15e3, 25e3], 'int' ],
|
||||||
|
'allies_damage_dealt' : [ 'Player Avg Dmg', 'bucket', [ 0, 500, 1000, 1250, 1500, 1750, 2000, 2500], 'int' ],
|
||||||
'enemies_wins' : [ 'Enemies WR', 'bucket', [ 0, .35, .45, .50, .55, .65], '%' ],
|
'enemies_wins' : [ 'Enemies WR', 'bucket', [ 0, .35, .45, .50, .55, .65], '%' ],
|
||||||
|
'enemies_battles' : [ 'Player Battles', 'bucket', [ 0, 500, 1000, 2500, 5e3, 10e3, 15e3, 25e3], 'int' ],
|
||||||
|
'enemies_damage_dealt' : [ 'Player Avg Dmg', 'bucket', [ 0, 500, 1000, 1250, 1500, 1750, 2000, 2500], 'int' ],
|
||||||
'player_name' : [ 'Player', 'string', 25 ],
|
'player_name' : [ 'Player', 'string', 25 ],
|
||||||
'protagonist' : [ 'account_id', 'number' ],
|
'protagonist' : [ 'account_id', 'number' ],
|
||||||
'tank_name' : [ 'Tank', 'string', 25],
|
'tank_name' : [ 'Tank', 'string', 25],
|
||||||
@@ -1587,8 +1591,6 @@ async def main(argv):
|
|||||||
players = get_players(results)
|
players = get_players(results)
|
||||||
replays = filter_replays(replays, results)
|
replays = filter_replays(replays, results)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(player_stats, stat_id_map) = await process_player_stats(players, OPT_WORKERS_N, args, db)
|
(player_stats, stat_id_map) = await process_player_stats(players, OPT_WORKERS_N, args, db)
|
||||||
bu.debug('Number of player stats: ' + str(len(player_stats)))
|
bu.debug('Number of player stats: ' + str(len(player_stats)))
|
||||||
teamresults = calc_team_stats(results, player_stats, stat_id_map, args)
|
teamresults = calc_team_stats(results, player_stats, stat_id_map, args)
|
||||||
@@ -1827,7 +1829,7 @@ def process_battle_results(results: dict, args : argparse.Namespace):
|
|||||||
blt_cat_list.calc_results()
|
blt_cat_list.calc_results()
|
||||||
else:
|
else:
|
||||||
warning_txt = 'No replays to process '
|
warning_txt = 'No replays to process '
|
||||||
if args.filter != None:
|
if args.filters != None:
|
||||||
warning_txt = warning_txt + 'after filtering'
|
warning_txt = warning_txt + 'after filtering'
|
||||||
bu.warning(warning_txt)
|
bu.warning(warning_txt)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user