From 3b5b1b950180b3b6d445051ee91448e15a5c39d0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 11 Apr 2024 15:10:38 +0200 Subject: [PATCH] fix mbux calculation --- files/helpers/config/const.py | 10 ++++++++++ files/routes/users.py | 7 +------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index c54714747..60d4b6e3e 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -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 diff --git a/files/routes/users.py b/files/routes/users.py index a744bff6e..af242fabf 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -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