master
Aevann1 2022-02-15 02:53:34 +02:00
parent ff66082b29
commit cc63576c1d
2 changed files with 4 additions and 4 deletions

View File

@ -339,8 +339,8 @@ def settings_profile_post(v):
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
if v.coins >= 2000: v.coins -= 2000
elif v.procoins >= 2000: v.procoins -= 2000
else: abort(403)
if house == "None": house = None

View File

@ -54,9 +54,9 @@
</div>
<div class="body w-lg-100">
<p>Change your house (cost: 500 coins or marseybux).</p>
<p>Change your house (cost: 2000 coins or marseybux).</p>
<div class="input-group mb2">
<select {% if v.coins < 500 and v.procoins < 500 %}disabled{% endif %} autocomplete="off" id='house' class="form-control" form="profile-settings" name="house" onchange="post_toast(this,'/settings/profile?house='+document.getElementById('house').value, '1')">
<select {% if v.coins < 2000 and v.procoins < 2000 %}disabled{% endif %} autocomplete="off" id='house' class="form-control" form="profile-settings" name="house" onchange="post_toast(this,'/settings/profile?house='+document.getElementById('house').value, '1')">
{% for entry in ("None","Furry","Femboy","Vampire","Racist") %}
<option value="{{entry}}" {% if v.house==entry %} selected {% endif %}>
{{entry}}