remotes/1693045480750635534/spooky-22
Aevann1 2021-08-31 23:22:33 +02:00
parent e2a3ca00aa
commit fede4f18c8
2 changed files with 3 additions and 2 deletions

View File

@ -50,6 +50,7 @@ def steal(v):
u.coins -= 2000
g.db.add(u)
send_notification(NOTIFICATIONS_ACCOUNT, u, f"@{v.username} has stolen 2000 dramacoins from you!")
send_notification(NOTIFICATIONS_ACCOUNT, v, f"You have successfully stolen 2000 dramacoins!")
else:
v.fail_utc = int(time.time())
v.ban(days=1, reason="Failed thief")

View File

@ -14,8 +14,8 @@
{% if u.id == 253 and 'rdrama' in request.host %}
<a class="btn btn-primary" href="javascript:void(0)", onclick="post('/pay_rent', callback=function(){window.location.reload(true)})">Pay rent to view profile (500 coins)</a>
<pre></pre>
<a class="btn btn-primary" href="javascript:void(0)", onclick="post('/steal', callback=function(){window.location.reload(true)})">Attempt to steal coins"</a>
<div class="text-small-extra text-muted mt-3">30% chance of being banned for 1 day, 70% chance of stealing 2000 coins</div>
<a class="btn btn-primary" href="javascript:void(0)", onclick="post('/steal', callback=function(){window.location.reload(true)})">Attempt to steal coins</a>
<div class="text-small-extra text-muted mt-1">30% chance of being banned for 1 day, 70% chance of stealing 2000 coins</div>
<pre>