mirror of
https://github.com/Xameren/Casino.git
synced 2025-02-04 08:29:24 +01:00
A simple bugfix
Fixed a bug where the money is not rounded properly
This commit is contained in:
parent
d31d88ccf9
commit
78b8b00b0e
1 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue