Seed the player roster from a status dump on connect and map change
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
@@ -400,6 +400,8 @@ class EventParser:
|
||||
# in CA it is damage-based, so sync it instead of accumulating deltas
|
||||
if data.get('SCORE') is not None:
|
||||
self.game_state.player_tracker.set_score(name, data['SCORE'])
|
||||
if 'TEAM' in data:
|
||||
self.game_state.player_tracker.update_team(name, data['TEAM'])
|
||||
|
||||
weapon_data = data.get('WEAPONS', {})
|
||||
accuracies = calculate_weapon_accuracies(weapon_data)
|
||||
|
||||
Reference in New Issue
Block a user