Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if event.is_goal_scored():
- if event.is_from_fast_break():
- stats['owner_fastbreak_attempts'] += 1
- stats['owner_fastbreak_goals'] += 1
- elif event.is_from_penalty():
- stats['owner_fastbreak_attempts'] += 1
- stats['owner_fastbreak_goals'] += 1
- else:
- stats['owner_field_attempts'] += 1
- stats['owner_field_goals'] += 1
- elif event.is_shot_missed():
- stats['opponent_goalkeeper_saves'] += 1
- if event.is_from_fast_break():
- stats['owner_fastbreak_attempts'] += 1
- elif event.is_from_penalty():
- stats['owner_fastbreak_attempts'] += 1
- else:
- stats['owner_field_attempts'] += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement