Advertisement
Rapptz

Untitled

Dec 26th, 2014
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. def calculate_tps(user):
  2.     top = user.top_cut_info
  3.     A = user.wins + user.losses + user.ties + top.get('times_participated', 0) + user.matches/2 + top.get('matches', 0)
  4.     A += 2 * user.times_participated + user.highest_win_streak/2 + top.get('highest_win_streak', 0)
  5.     A += 2 * top.get('wins', 0) + top.get('losses', 0) + top.get('ties', 0)
  6.     A = A / 4
  7.     B = 4 * user.dqs + 16 * user.bans
  8.     return A - B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement