forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-14 21:16:38 +02:00
parent 315dcef46a
commit 9cc78fc04b
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ def create_sub2(v):
sub = g.db.query(Sub).filter_by(name=name).one_or_none() sub = g.db.query(Sub).filter_by(name=name).one_or_none()
if not sub: if not sub:
cost = v.subs_created * 25 cost = v.subs_created * 50
if v.coins < cost: if v.coins < cost:
return render_template("sub/create_sub.html", v=v, error="You don't have enough coins!"), 403 return render_template("sub/create_sub.html", v=v, error="You don't have enough coins!"), 403

View File

@ -44,11 +44,11 @@
</p> </p>
{% endif %} {% endif %}
<button class="btn btn-primary ml-auto" id="create_button" {% if v.subs_created * 25 > v.coins %}disabled{% endif %}>Create Sub</button> <button class="btn btn-primary ml-auto" id="create_button" {% if v.subs_created * 50 > v.coins %}disabled{% endif %}>Create Sub</button>
</div> </div>
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{v.subs_created * 25}} coins</p> <p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{v.subs_created * 50}} coins</p>
</div> </div>