Finish up betting code

This commit is contained in:
Firepup Sixfifty 2024-06-01 22:25:06 -05:00
parent af1756f925
commit 7ef02bf6f4
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

15
game.py
View file

@ -232,5 +232,18 @@ E. Exit""")
# And this is the end of the old code docs... (basically, this part is modified however)
if winnings == 0:
print("You won nothing. (You kept your bet though)")
if winnings == (0 - (int(bet) * 10)):
elif winnings == (0 - (int(bet) * 10)):
print("You lost your bet!")
uData["studsLost"] -= winnings
elif winnings >= 0:
print(f"You won {winnings} studs!")
uData["studsGained"] += winnings
elif winnings <= 0:
print(f"You lost {winnings} studs!")
uData["studsLost"] -= winnings
else:
print("wtf")
if uData["studs"] > uData["highestStuds"]:
uData["highestStuds"] = uData["studs"]
else:
print("You don't have enough studs to bet that much.")