diff --git a/funcs/games/blackjackDraw.py b/funcs/games/blackjackDraw.py index 46c1eb4..fdb3eb1 100644 --- a/funcs/games/blackjackDraw.py +++ b/funcs/games/blackjackDraw.py @@ -22,7 +22,7 @@ def drawImage(channel): dealerBusted = data["blackjack games"][channel]["dealer busted"] dealerBlackjack = data["blackjack games"][channel]["dealer blackjack"] - + try: if data["blackjack games"][channel]["all standing"] == False: dealerHand = drawHand(data["blackjack games"][channel]["dealer hand"],True,False,False) diff --git a/funcs/games/money.py b/funcs/games/money.py index 1e2965d..14d1167 100644 --- a/funcs/games/money.py +++ b/funcs/games/money.py @@ -18,7 +18,7 @@ def addMoney(user,amount): logThis("adding "+str(amount)+" to "+user+"'s account") with open("resources/users.json", "r") as f: data = json.load(f) - + if user in data: points = data[user]["money"] data[user]["money"] = points + amount diff --git a/funcs/games/monopolyDraw.py b/funcs/games/monopolyDraw.py index 926bb52..45fddd8 100644 --- a/funcs/games/monopolyDraw.py +++ b/funcs/games/monopolyDraw.py @@ -42,7 +42,7 @@ def getPosition(positionNumber): x = w - math.floor(largeSpace/2) elif positionNumber > 20 and positionNumber < 30: x = w - math.floor(largeSpace - (smallSpace/2)) - (smallSpace*(positionNumber - 20)) - + if positionNumber >= 0 and positionNumber <= 20: y = math.floor(largeSpace/2) elif positionNumber > 10 and positionNumber < 20: