Added Penalty System
This commit is contained in:
@@ -4,6 +4,10 @@ def apply_rr(rank: str, rr: int, change: int):
|
||||
rr += change
|
||||
idx = VALORANT_RANKS.index(rank)
|
||||
|
||||
# Prevent negative RR
|
||||
if rr < 0:
|
||||
rr = 0
|
||||
|
||||
while rr >= 100 and idx < len(VALORANT_RANKS) - 1:
|
||||
rr -= 100
|
||||
idx += 1
|
||||
|
||||
Reference in New Issue
Block a user