Added Penalty System

This commit is contained in:
2026-02-09 17:08:27 -06:00
parent 6f693dc19c
commit e94a42c6dc
4 changed files with 64 additions and 16 deletions

View File

@@ -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