Skip to content

Commit

Permalink
enhance: add lifetime and placement matches played to playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Oct 25, 2024
1 parent e330bfa commit 486f3ce
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion rlapi/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ class Playlist:
win_streak: int
Win streak on this playlist.
matches_played: int
Amount of matches played on this playlist.
Number of matches played on this playlist during the current season.
lifetime_matches_played: int
Number of matches played on this playlist since player started playing the game.
placement_matches_played: int
Number of placement matches played on this playlist during the current season.
Maxes out at 10.
breakdown: dict
Playlist tier breakdown.
tier_estimates: `TierEstimates`
Expand All @@ -104,6 +109,8 @@ class Playlist:
"sigma",
"win_streak",
"matches_played",
"lifetime_matches_played",
"placement_matches_played",
"breakdown",
"tier_estimates",
)
Expand Down Expand Up @@ -136,6 +143,8 @@ def __init__(
self.sigma: float = data.get("sigma") or 8.333
self.win_streak: int = data.get("win_streak") or 0
self.matches_played: int = data.get("matches_played") or 0
self.lifetime_matches_played: int = data.get("lifetime_matches_played") or 0
self.placement_matches_played: int = data.get("placement_matches_played") or 0
self.breakdown = breakdown if breakdown is not None else {}
self.tier_estimates = TierEstimates(self)

Expand Down

0 comments on commit 486f3ce

Please sign in to comment.