diff --git a/files/helpers/const.py b/files/helpers/const.py index fe2bbc1ae0..7b6bef96bf 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -451,6 +451,9 @@ ANTISPAM_BYPASS_IDS = () PAGE_SIZE = 25 LEADERBOARD_LIMIT = PAGE_SIZE +HOUSE_JOIN_COST = 500 +HOUSE_SWITCH_COST = 2000 + if SITE.startswith('rdrama.'): FEATURES['PRONOUNS'] = True FEATURES['HOUSES'] = True diff --git a/files/routes/settings.py b/files/routes/settings.py index 78d5e9c509..e9f29aec39 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -277,9 +277,9 @@ def settings_profile_post(v): if v.bite: abort(403) if v.house: if v.house.replace(' Founder', '') == house: abort(409, f"You're already in House {house}") - cost = 2000 + cost = HOUSE_SWITCH_COST else: - cost = 500 + cost = HOUSE_JOIN_COST success = v.charge_account('coins', cost) if not success: diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 39951cb566..dd0b293e60 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -18,87 +18,52 @@
Change your house (cost: {{cost}} coins or marseybux).
+Change your house (cost: {{HOUSE_SWITCH_COST}} coins or marseybux).
{% else %} - {% set cost=500 %} -Join a house (cost: {{cost}} coins or marseybux).
+Join a house (cost: {{HOUSE_JOIN_COST}} coins or marseybux).
+ {% endif %} + {% if ' Founder' in v.house %} +Warning: you'll lose your founder status if you join a different house
{% endif %}