master
Aevann1 2021-09-01 01:17:51 +02:00
parent 1eecd2d47e
commit fd1ffeff5e
9 changed files with 12 additions and 12 deletions

View File

@ -44,13 +44,13 @@ def steal(v):
return "You must have more than 100 coins in order to attempt stealing."
u = get_account(253)
if random.randint(1, 10) < 5:
v.coins += 1000
v.coins += 700
v.steal_utc = int(time.time())
g.db.add(v)
u.coins -= 1000
u.coins -= 700
g.db.add(u)
send_notification(NOTIFICATIONS_ACCOUNT, u, f"Some [grubby little rentoid](/@{v.username}) has absconded with 1000 of your hard-earned dramacoins to fuel his Funko Pop addiction. Stop being so trusting.")
send_notification(NOTIFICATIONS_ACCOUNT, v, f"You have successfully shorted your heroic landlord 1000 dramacoins in rent. You're slightly less materially poor, but somehow even moreso morally. Are you proud of yourself?")
send_notification(NOTIFICATIONS_ACCOUNT, u, f"Some [grubby little rentoid](/@{v.username}) has absconded with 700 of your hard-earned dramacoins to fuel his Funko Pop addiction. Stop being so trusting.")
send_notification(NOTIFICATIONS_ACCOUNT, v, f"You have successfully shorted your heroic landlord 700 dramacoins in rent. You're slightly less materially poor, but somehow even moreso morally. Are you proud of yourself?")
else:
if random.random() < 0.15:
send_notification(NOTIFICATIONS_ACCOUNT, u, f"You caught [this sniveling little renthog](/@{v.username}) trying to rob you. After beating him within an inch of his life, you sold his Nintendo Switch for 500 dramacoins and called the cops. He was sentenced to one (1) day in renthog prison.")

View File

@ -1161,7 +1161,7 @@
{% include "expanded_image_modal.html" %}
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
<!-- ClipboardJS -->

View File

@ -145,6 +145,6 @@ We also have some custom hooks for mentioning users and subreddits. Note that th
{% include "expanded_image_modal.html" %}
{% include "expanded_video_modal.html" %}
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
{% endblock %}

View File

@ -130,7 +130,7 @@
{% include "bootstrap.html" %}
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
</body>

View File

@ -254,7 +254,7 @@
</div>
</div>
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
{% block onload %}{% endblock %}

View File

@ -226,7 +226,7 @@
});
</script>
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
{% block scripts %}
{% endblock %}

View File

@ -225,7 +225,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
</body>

View File

@ -144,7 +144,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
</body>

View File

@ -409,7 +409,7 @@
<!-- {{'SITE_NAME' | app_config}} JS -->
<script src="/assets/js/general3.js"></script>
<script src="/assets/js/general4.js"></script>
<!-- ClipboardJS -->