1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Add emojis to leagueleague

This commit is contained in:
Steffo 2019-10-28 17:25:17 +01:00
parent 4a9b74ab7a
commit abc4bab947

View file

@ -24,7 +24,14 @@ class LeagueLeague:
self.veteran: bool = veteran
def __str__(self):
return f"[b]{self.tier} {self.rank}[/b] ({self.points} LP)"
emojis = ""
if self.veteran:
emojis += "🏆"
if self.hot_streak:
emojis += "🔥"
if self.fresh_blood:
emojis += "⭐️"
return f"[b]{self.tier} {self.rank}[/b] ({self.points} LP) {emojis}"
def __repr__(self):
return f"<{self.__class__.__qualname__} {self}>"