Update dopewar.py

This commit is contained in:
SpudGunMan
2024-10-23 22:13:48 -07:00
parent 7b995b35cd
commit 40b31fd8af
+1 -1
View File
@@ -395,7 +395,7 @@ def endGameDw(nodeID):
dwHighScore = ({'userID': nodeID, 'cash': round(cash, 2)})
with open('data/dopewar_hs.pkl', 'wb') as file:
pickle.dump(dwHighScore, file)
msg = "You finished with $" + str(cash) + " and beat the high score!🎉💰"
msg = "You finished with $" + "{:,}".format(cash) + " and beat the high score!🎉💰"
return msg
if cash > starting_cash:
msg = 'You made money! 💵 Up ' + str((cash/starting_cash).__round__()) + 'x! Well done.'