This commit is contained in:
NikolajDanger
2020-08-13 17:09:26 +02:00
parent b82d233faf
commit 4ee96cd3b5
10 changed files with 14 additions and 19 deletions

View File

@ -229,7 +229,7 @@ class Blackjack():
# When players try to double down
def blackjackDouble(self,channel,user,handNumber = 0):
game = self.bot.database["blackjack games"].find_one({"_id":channel})
if user in game["user hands"]:
hand, handNumber = self.getHandNumber(game["user hands"][user],handNumber)

View File

@ -1,7 +1,6 @@
import random
import copy
import math
import asyncio
from .fourInARowDraw import DrawFourInARow
from funcs import logThis
@ -128,8 +127,8 @@ class FourInARow():
def placeOnBoard(self,board,player,column):
placementx, placementy = -1, column
for x in range(len(board)):
if board[x][column] == 0:
for x, line in enumerate(board):
if line[column] == 0:
placementx = x
board[placementx][placementy] = player

View File

@ -2,7 +2,6 @@ import json
import urllib
import random
from . import money
from funcs import logThis
class Trivia():

View File

@ -101,7 +101,7 @@ def monsterFunc(command):
hit_dice += (" - "+str(con_mod * int(monster["hit_dice"].replace("d"," ").split()[0])*(-1)))
if con_mod > 0:
hit_dice += (" + "+str(con_mod * int(monster["hit_dice"].replace("d"," ").split()[0])))
new_part = "\n--------------------"
monster_type = monster["size"]+" "+typs+", "+monster["alignment"]+"*"

View File

@ -29,7 +29,7 @@ def nameGen():
# Choses a random first letter
first_letter = random.choice(corpus)
# Makes sure the first letter is not something a name can't start with.
# Makes sure the first letter is not something a name can't start with.
while first_letter.islower() or first_letter == " " or first_letter == "-" or first_letter == "\n":
first_letter = random.choice(corpus)

View File

@ -280,7 +280,7 @@ class SwChar():
except:
logThis("Nope. That didn't happen (error code 942)")
return "Can't do that (error code 942)"
if (key == "Talents" or key == "Force-powers") and "," in cmd:
cmd = cmd.split(",")
while cmd[1][0] == " ":

View File

@ -188,7 +188,7 @@ class SwRoll():
emoji += "<:light:691010089905029171>"
elif char == 'B':
emoji += "<:dark:691010101901000852>"
return emoji
# Converts emoji into letters