A simple bugfix

Fixed a bug where the money  is not rounded properly
This commit is contained in:
Xameren 2024-09-25 22:01:53 +02:00 committed by GitHub
parent d31d88ccf9
commit 78b8b00b0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")