From 2ef3a95ef07c9eff4398d4f50e37cfea9788d356 Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Tue, 13 Feb 2024 10:25:24 +0000 Subject: [PATCH] Fix brianwash gain percentage --- plugins/tildewash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tildewash.py b/plugins/tildewash.py index 7b13b4c..9f32b30 100644 --- a/plugins/tildewash.py +++ b/plugins/tildewash.py @@ -28,7 +28,7 @@ def cleanwash_money(msg): balance = Decimal(subprocess.check_output(['/home/jmjl/bin/coin','Ju','internal_balance',nick],universal_newlines=True)) if balance == Decimal(0): return pinhook.plugin.message("You don't have any tildecoins with us, so you can't cleanwash") subprocess.check_output(['/home/jmjl/bin/coin','Ju','add_internal_balance',nick,f'-{str(balance)}'],universal_newlines=True).strip() - new_balance = Decimal(randint(80,110))/Decimal(100)*Decimal(balance) + new_balance = Decimal(randint(59,110))/Decimal(100)*Decimal(balance) new_balance = new_balance.quantize(Decimal('1.'), rounding=ROUND_DOWN) percentage_return = new_balance/balance * Decimal(100) percentage_return = percentage_return.quantize(Decimal('.00'), rounding=ROUND_DOWN)