Eh, kinda working
This commit is contained in:
11
helpers.py
Normal file
11
helpers.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from constants import VALORANT_RANKS
|
||||
|
||||
def apply_rr(rank: str, rr: int, change: int):
|
||||
rr += change
|
||||
idx = VALORANT_RANKS.index(rank)
|
||||
|
||||
while rr >= 100 and idx < len(VALORANT_RANKS) - 1:
|
||||
rr -= 100
|
||||
idx += 1
|
||||
|
||||
return VALORANT_RANKS[idx], rr
|
||||
Reference in New Issue
Block a user