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

Fixato il bug di LoL. Forse.

This commit is contained in:
Steffo 2016-10-02 00:38:50 +02:00
parent 94e32875e2
commit dcac246607
2 changed files with 10 additions and 2 deletions

View file

@ -95,8 +95,9 @@ async def league_rank_change(timeout):
player=player, player=player,
tier=s.league_tier_list[tier_number], tier=s.league_tier_list[tier_number],
division=r["entries"][0]["division"], division=r["entries"][0]["division"],
oldtier=db[player]["league"]["tier"], oldtier=s.league_tier_list[db[player]["league"]["tier"]],
olddivision=db[player]["league"]["division"])) olddivision=
s.league_roman_list[db[player]["league"]["division"]]))
# Update database # Update database
db[player]["league"]["tier"] = tier_number db[player]["league"]["tier"] = tier_number
db[player]["league"]["division"] = roman_number db[player]["league"]["division"] = roman_number

View file

@ -15,6 +15,13 @@ league_tier_list = ["Bronzo",
"Master", "Master",
"Challenger"] "Challenger"]
# League of Legends: Roman tier list
league_roman_list = ["I",
"II",
"III",
"IV",
"V"]
# League of Legends: Level up! # League of Legends: Level up!
league_level_up = "{player} è salito al livello **{level}** su _League of Legends_!" league_level_up = "{player} è salito al livello **{level}** su _League of Legends_!"