From 91d8c709cb1cee66cd6a4cfead93b7514e92c106 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 3 Sep 2022 21:53:38 +0200 Subject: [PATCH] increase hat artist cut by 10% --- files/routes/hats.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/hats.py b/files/routes/hats.py index 81d5addc1..e2d28947c 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -40,13 +40,13 @@ def buy_hat(v, hat_id): if request.values.get("mb"): if v.procoins < hat.price: return {"error": "Not enough marseybux."}, 400 v.procoins -= hat.price - hat.author.procoins += hat.price * 0.05 + hat.author.procoins += hat.price * 0.1 currency = "marseybux" else: if v.coins < hat.price: return {"error": "Not enough coins."}, 400 v.coins -= hat.price v.coins_spent_on_hats += hat.price - hat.author.coins += hat.price * 0.05 + hat.author.coins += hat.price * 0.1 currency = "coins" new_hat = Hat(user_id=v.id, hat_id=hat.id) @@ -58,7 +58,7 @@ def buy_hat(v, hat_id): if v.id != hat.author.id: send_repeatable_notification( hat.author.id, - f":marseycapitalistmanlet: @{v.username} has just bought `{hat.name}`, you have received your 5% cut ({int(hat.price * 0.05)} {currency}) :!marseycapitalistmanlet:" + f":marseycapitalistmanlet: @{v.username} has just bought `{hat.name}`, you have received your 10% cut ({int(hat.price * 0.05)} {currency}) :!marseycapitalistmanlet:" ) if v.num_of_owned_hats >= 250: