houses: make price a constant
houses: warn founders that switching houses will delete their founder statusremotes/1693176582716663532/tmp_refs/heads/watchparty
parent
1008c3b71f
commit
c6675ff037
|
@ -451,6 +451,9 @@ ANTISPAM_BYPASS_IDS = ()
|
||||||
PAGE_SIZE = 25
|
PAGE_SIZE = 25
|
||||||
LEADERBOARD_LIMIT = PAGE_SIZE
|
LEADERBOARD_LIMIT = PAGE_SIZE
|
||||||
|
|
||||||
|
HOUSE_JOIN_COST = 500
|
||||||
|
HOUSE_SWITCH_COST = 2000
|
||||||
|
|
||||||
if SITE.startswith('rdrama.'):
|
if SITE.startswith('rdrama.'):
|
||||||
FEATURES['PRONOUNS'] = True
|
FEATURES['PRONOUNS'] = True
|
||||||
FEATURES['HOUSES'] = True
|
FEATURES['HOUSES'] = True
|
||||||
|
|
|
@ -277,9 +277,9 @@ def settings_profile_post(v):
|
||||||
if v.bite: abort(403)
|
if v.bite: abort(403)
|
||||||
if v.house:
|
if v.house:
|
||||||
if v.house.replace(' Founder', '') == house: abort(409, f"You're already in House {house}")
|
if v.house.replace(' Founder', '') == house: abort(409, f"You're already in House {house}")
|
||||||
cost = 2000
|
cost = HOUSE_SWITCH_COST
|
||||||
else:
|
else:
|
||||||
cost = 500
|
cost = HOUSE_JOIN_COST
|
||||||
|
|
||||||
success = v.charge_account('coins', cost)
|
success = v.charge_account('coins', cost)
|
||||||
if not success:
|
if not success:
|
||||||
|
|
|
@ -18,87 +18,52 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div id="posts" class="row">
|
<div id="posts" class="row">
|
||||||
|
|
||||||
<div class="col col-lg-10">
|
<div class="col col-lg-10">
|
||||||
|
|
||||||
<div class="settings">
|
<div class="settings">
|
||||||
|
|
||||||
|
|
||||||
{% if FEATURES['HOUSES'] %}
|
{% if FEATURES['HOUSES'] %}
|
||||||
<h5 name="referral">House</h5>
|
<h5 name="referral">House</h5>
|
||||||
|
|
||||||
<div class="settings-section rounded">
|
<div class="settings-section rounded">
|
||||||
|
|
||||||
<div class="d-lg-flex border-bottom">
|
<div class="d-lg-flex border-bottom">
|
||||||
<div class="title w-lg-25">
|
<div class="title w-lg-25">
|
||||||
<label for="theme">House</label>
|
<label for="theme">House</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
{% if v.house %}
|
{% if v.house %}
|
||||||
{% set cost=2000 %}
|
<p>Change your house (cost: {{HOUSE_SWITCH_COST}} coins or marseybux).</p>
|
||||||
<p>Change your house (cost: {{cost}} coins or marseybux).</p>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set cost=500 %}
|
<p>Join a house (cost: {{HOUSE_JOIN_COST}} coins or marseybux).</p>
|
||||||
<p>Join a house (cost: {{cost}} coins or marseybux).</p>
|
{% endif %}
|
||||||
|
{% if ' Founder' in v.house %}
|
||||||
|
<p>Warning: you'll lose your founder status if you join a different house</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="input-group mb2">
|
<div class="input-group mb2">
|
||||||
<select {% if v.coins < cost and v.procoins < cost or v.bite %}disabled{% endif %} autocomplete="off" id='house' class="form-control" form="profile-settings" name="house" onchange="postToastReload(this,'/settings/profile?house='+document.getElementById('house').value)">
|
<select {% if v.coins < cost and v.procoins < cost or v.bite %}disabled{% endif %} autocomplete="off" id='house' class="form-control" form="profile-settings" name="house" onchange="postToastReload(this,'/settings/profile?house='+document.getElementById('house').value)">
|
||||||
{% for entry in ("None","Furry","Femboy","Vampire","Racist") %}
|
{% for entry in ("None","Furry","Femboy","Vampire","Racist") %}
|
||||||
<option value="{{entry}}" {% if v.house==entry %} selected {% endif %}>
|
<option value="{{entry}}" {% if v.house == entry %} selected {% endif %}>
|
||||||
{{entry}}
|
{{entry}}
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h5 name="referral">Theme</h5>
|
<h5 name="referral">Theme</h5>
|
||||||
|
|
||||||
<div class="settings-section rounded">
|
<div class="settings-section rounded">
|
||||||
|
|
||||||
<div class="d-lg-flex border-bottom">
|
<div class="d-lg-flex border-bottom">
|
||||||
|
|
||||||
<div class="title w-lg-25">
|
<div class="title w-lg-25">
|
||||||
<label for="cardview">Card View</label>
|
<label for="cardview">Card View</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
|
|
||||||
<div class="custom-control custom-switch">
|
<div class="custom-control custom-switch">
|
||||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="cardview" name="cardview"{% if v.cardview %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?cardview='+document.getElementById('cardview').checked);">
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="cardview" name="cardview"{% if v.cardview %} checked{% endif %} onchange="postToastSwitch(this,'/settings/profile?cardview='+document.getElementById('cardview').checked);">
|
||||||
<label class="custom-control-label" for="cardview"></label>
|
<label class="custom-control-label" for="cardview"></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="text-small text-muted">Enable if you would like to display images and videos in full size on the frontpage.</span>
|
<span class="text-small text-muted">Enable if you would like to display images and videos in full size on the frontpage.</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="d-lg-flex border-bottom">
|
<div class="d-lg-flex border-bottom">
|
||||||
|
|
||||||
<div class="title w-lg-25">
|
<div class="title w-lg-25">
|
||||||
|
|
Loading…
Reference in New Issue