Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calculate_tps(user):
- top = user.top_cut_info
- A = user.wins + user.losses + user.ties + top.get('times_participated', 0) + user.matches/2 + top.get('matches', 0)
- A += 2 * user.times_participated + user.highest_win_streak/2 + top.get('highest_win_streak', 0)
- A += 2 * top.get('wins', 0) + top.get('losses', 0) + top.get('ties', 0)
- A = A / 4
- B = 4 * user.dqs + 16 * user.bans
- return A - B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement