Hex is winable!

This commit is contained in:
jona605a
2020-08-09 22:48:09 +02:00
parent 1a459fffb0
commit 47502710d9
3 changed files with 22 additions and 43 deletions

View File

@ -62,7 +62,8 @@ async def runHex(channel,command,user):
data = json.load(f)
winner = data[str(channel.id)]["winner"]
if winner != 0:
addMoney(data[str(channel.id)]["players"][winner-1].lower(),50)
winnings = data[str(channel.id)]["difficulty"]*10
addMoney(data[str(channel.id)]["players"][winner-1].lower(),winnings)
#deleteGame("hex games",str(channel.id))
with open("resources/games/hexGames.json", "r") as f: