From 338ce7f9ce5b9ada859026d3484fac4559824479 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Fri, 25 Oct 2024 14:02:16 +0200 Subject: [PATCH] enhance: add lifetime and placement matches played to playlists (#87) --- rlapi/player.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rlapi/player.py b/rlapi/player.py index 2d716cb..9eb4163 100644 --- a/rlapi/player.py +++ b/rlapi/player.py @@ -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` @@ -104,6 +109,8 @@ class Playlist: "sigma", "win_streak", "matches_played", + "lifetime_matches_played", + "placement_matches_played", "breakdown", "tier_estimates", ) @@ -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)