fix mbux calculation

master
Aevann 2024-04-11 15:10:38 +02:00
parent 8c01b3a2bb
commit 3b5b1b9501
2 changed files with 11 additions and 6 deletions

View File

@ -645,6 +645,16 @@ TIER_TO_MONEY = {
8: 500,
}
TIER_TO_MUL = {
2: 500,
3: 550,
4: 600,
5: 650,
6: 700,
7: 750,
8: 800,
}
BADGE_BLACKLIST = { # only grantable by admins higher than PERMS['IGNORE_BADGE_BLACKLIST']
1, 2, 6, 10, 11, 12, # Alpha, Verified Email, Beta, Recruiter x3
16, 17, 143, 21, 22, 23, 24, 25, 26, 27, # Marsey Artist x3 / Patron Tiers

View File

@ -70,12 +70,7 @@ def claim_rewards_all_users():
if tx_amount_for_tier < money: break
tier = t
marseybux += transaction.amount * 500
if tier > 2:
extra_mul = (tier - 2) / 10
extra_marseybux = marseybux * extra_mul
marseybux += extra_marseybux
marseybux += transaction.amount * TIER_TO_MUL[tier]
if tier > highest_tier:
highest_tier = tier