Finish up betting code
This commit is contained in:
parent
af1756f925
commit
7ef02bf6f4
1 changed files with 14 additions and 1 deletions
15
game.py
15
game.py
|
@ -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.")
|
||||
|
|
Loading…
Reference in a new issue