diff --git a/lokrez/smashgg.py b/lokrez/smashgg.py index 6efd3ae..6f1dbe5 100644 --- a/lokrez/smashgg.py +++ b/lokrez/smashgg.py @@ -119,6 +119,14 @@ class Player(): except KeyError: self.chars[character] = ( 1.01 if win else 1.00 ) + # ------------------------------------------------------------------------- + def get_mains(self): + return [ cv[0] for cv in sorted( + self.chars.items(), + key = lambda cv: cv[1], + reverse = True, + ) ] + # ------------------------------------------------------------------------- def conf(self):