From 3ab8e5b8b5992fb7f30d82e3add0039a5ee90de6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 15 Feb 2022 01:59:20 +0200 Subject: [PATCH] fsd --- files/routes/settings.py | 10 ++++++ files/templates/settings_profile.html | 48 +++++++++++++++++++++++++++ files/templates/submit.html | 10 +++--- 3 files changed, 64 insertions(+), 4 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 6fa0462e7..41ef545d0 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -337,6 +337,16 @@ def settings_profile_post(v): updated = True else: abort(400) + house = request.values.get("house") + if house and house in ("None","Furry","Femboy","Vampire","Racist"): + if v.coins > 500: v.coins -= 500 + elif v.procoins > 500: v.procoins -= 500 + else: abort(403) + + if house == "None": house = None + v.house = house + updated = True + quadrant = request.values.get("quadrant") if quadrant and request.host == 'pcmemes.net'.lower(): v.quadrant = quadrant diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 6dc945500..302b9c65e 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -39,6 +39,54 @@ {% endif %} + + + + + +

House

+ +
+ +
+
+ +
+ +
+

Change your house (cost: 500 coins or marseybux).

+
+ +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + +

Theme

diff --git a/files/templates/submit.html b/files/templates/submit.html index e0e43c966..a5fce15fd 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -174,10 +174,6 @@
-
- - -
{% if v.club_allowed != False %}
@@ -185,6 +181,12 @@
{% endif %} + +
+ + +
+