From 78b8b00b0ed5dc2eb0533ae58c12066e20ffee54 Mon Sep 17 00:00:00 2001 From: Xameren <115501936+Xameren@users.noreply.github.com> Date: Wed, 25 Sep 2024 22:01:53 +0200 Subject: [PATCH] A simple bugfix Fixed a bug where the money is not rounded properly --- Casino.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Casino.py b/Casino.py index 9fbb258..ee07a0b 100644 --- a/Casino.py +++ b/Casino.py @@ -1092,7 +1092,7 @@ def dailyreward(): now_str = lastrewardtime.isoformat() json_datetime = json.dumps({"current_time": now_str}) def CasinoMenu(): - global cashout, dead, coolstoppingargument, username,xp,level,xptoreach + global cashout, dead, coolstoppingargument, username, money, xp, level, xptoreach while True: xptoreach = xptoreachbase*level while xp > xptoreach: @@ -1108,6 +1108,9 @@ def CasinoMenu(): for _ in range(20 - xp_filled_value): xp_filled += '-' + money = round(money) + xp = round(xp) + print("\033[H\033[J", end="") save_game() print(f"Welcome to the Casino, \033[1m{username}!\033[0m")