🐛
This commit is contained in:
@ -22,7 +22,7 @@ def drawImage(channel):
|
|||||||
|
|
||||||
dealerBusted = data["blackjack games"][channel]["dealer busted"]
|
dealerBusted = data["blackjack games"][channel]["dealer busted"]
|
||||||
dealerBlackjack = data["blackjack games"][channel]["dealer blackjack"]
|
dealerBlackjack = data["blackjack games"][channel]["dealer blackjack"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if data["blackjack games"][channel]["all standing"] == False:
|
if data["blackjack games"][channel]["all standing"] == False:
|
||||||
dealerHand = drawHand(data["blackjack games"][channel]["dealer hand"],True,False,False)
|
dealerHand = drawHand(data["blackjack games"][channel]["dealer hand"],True,False,False)
|
||||||
|
@ -18,7 +18,7 @@ def addMoney(user,amount):
|
|||||||
logThis("adding "+str(amount)+" to "+user+"'s account")
|
logThis("adding "+str(amount)+" to "+user+"'s account")
|
||||||
with open("resources/users.json", "r") as f:
|
with open("resources/users.json", "r") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
||||||
if user in data:
|
if user in data:
|
||||||
points = data[user]["money"]
|
points = data[user]["money"]
|
||||||
data[user]["money"] = points + amount
|
data[user]["money"] = points + amount
|
||||||
|
@ -42,7 +42,7 @@ def getPosition(positionNumber):
|
|||||||
x = w - math.floor(largeSpace/2)
|
x = w - math.floor(largeSpace/2)
|
||||||
elif positionNumber > 20 and positionNumber < 30:
|
elif positionNumber > 20 and positionNumber < 30:
|
||||||
x = w - math.floor(largeSpace - (smallSpace/2)) - (smallSpace*(positionNumber - 20))
|
x = w - math.floor(largeSpace - (smallSpace/2)) - (smallSpace*(positionNumber - 20))
|
||||||
|
|
||||||
if positionNumber >= 0 and positionNumber <= 20:
|
if positionNumber >= 0 and positionNumber <= 20:
|
||||||
y = math.floor(largeSpace/2)
|
y = math.floor(largeSpace/2)
|
||||||
elif positionNumber > 10 and positionNumber < 20:
|
elif positionNumber > 10 and positionNumber < 20:
|
||||||
|
Reference in New Issue
Block a user