From e49e63f39ae897c39356b28311dbd52315ba5fd7 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 18 Sep 2024 01:09:36 -0700 Subject: [PATCH] Update dopewar.py --- modules/dopewar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dopewar.py b/modules/dopewar.py index 032d94c..aaa8a40 100644 --- a/modules/dopewar.py +++ b/modules/dopewar.py @@ -358,7 +358,7 @@ def endGame(nodeID): # checks if the player's score is higher than the high score and writes a new high score if it is if cash > dwHighScore.get('cash'): - dwHighScore = ({'userID': nodeID, 'cash': cash}) + dwHighScore = ({'userID': nodeID, 'cash': round(cash, 2)}) with open('dopewar_hs.pkl', 'wb') as file: pickle.dump(dwHighScore, file) msg = "You finished with $" + str(cash) + " and beat the high score!🎉💰"