-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
from assets.colors import Purple, Pink, Cyan, DGreen, LGreen, Yellow, Orange, Red | ||
|
||
|
||
def winrate(wr): | ||
def color_winrate(wr): | ||
c = Purple() if wr > 65 else Pink() if wr > 60 else Cyan() if wr > 56 else DGreen() if wr > 54 else \ | ||
LGreen() if wr > 52 else Yellow() if wr > 49 else Orange() if wr > 47 else Red() | ||
return c | ||
|
||
|
||
def battles(battles): | ||
def color_battles(battles): | ||
c = Purple() if battles > 20000 else Cyan() if battles > 14000 else LGreen() if battles > 9000 else \ | ||
Yellow() if battles > 5000 else Orange() if battles > 2000 else Red() | ||
return c | ||
|
||
|
||
def avg_dmg(avg_dmg): | ||
def color_avg_dmg(avg_dmg): | ||
c = Pink() if avg_dmg > 48500 else Cyan() if avg_dmg > 38000 else LGreen() if avg_dmg > 33000 else \ | ||
Yellow() if avg_dmg > 22000 else Orange() if avg_dmg > 16000 else Red() | ||
return c |