diff --git a/files/classes/user.py b/files/classes/user.py index 7913f0b41..83c58f984 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -192,7 +192,7 @@ class User(Base): elif self.patron == 6: discount = 0.65 else: discount = 1 - for badge in [69,70,71,72,73]: + for badge in discounts: if self.has_badge(badge): discount -= discounts[badge] return discount diff --git a/files/helpers/const.py b/files/helpers/const.py index 33acd583e..9e510018d 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -721,11 +721,16 @@ REDDIT_NOTIFS = { } discounts = { + # Big Spender badges, 2pp additive discount each 69: 0.02, - 70: 0.04, - 71: 0.06, - 72: 0.08, - 73: 0.10, + 70: 0.02, + 71: 0.02, + 72: 0.02, + 73: 0.02, + # Lootbox badges, 1pp additive discount each + 76: 0.01, + 77: 0.01, + 78: 0.01, } CF_KEY = environ.get("CF_KEY", "").strip()