|
|
|
@ -12,33 +12,39 @@ def ownedcards():
|
|
|
|
|
|
|
|
|
|
def cardtext(card):
|
|
|
|
|
cardtext = "<span class=\"cardname\">"
|
|
|
|
|
with open("build/decks/" + card[:-2] + "/type") as thetype:
|
|
|
|
|
cardtype = thetype.read()
|
|
|
|
|
if cardtype == "red":
|
|
|
|
|
cardtext += "🔴"
|
|
|
|
|
elif cardtype == "orange":
|
|
|
|
|
cardtext += "🟠"
|
|
|
|
|
elif cardtype == "yellow":
|
|
|
|
|
cardtext += "🟡"
|
|
|
|
|
elif cardtype == "green":
|
|
|
|
|
cardtext += "🟢"
|
|
|
|
|
elif cardtype == "blue":
|
|
|
|
|
cardtext += "🔵"
|
|
|
|
|
elif cardtype == "purple":
|
|
|
|
|
cardtext += "🟣"
|
|
|
|
|
elif cardtype == "brown":
|
|
|
|
|
cardtext += "🟤"
|
|
|
|
|
elif cardtype == "gray":
|
|
|
|
|
cardtext += "⚪"
|
|
|
|
|
elif cardtype == "special":
|
|
|
|
|
cardtext += "✨"
|
|
|
|
|
cardtext += card + "</span>"
|
|
|
|
|
if card[0:4] == "sig_":
|
|
|
|
|
cardtext += "✍" + card + "</span>"
|
|
|
|
|
else:
|
|
|
|
|
with open("build/decks/" + card[:-2] + "/type") as thetype:
|
|
|
|
|
cardtype = thetype.read()
|
|
|
|
|
if cardtype == "red":
|
|
|
|
|
cardtext += "🔴"
|
|
|
|
|
elif cardtype == "orange":
|
|
|
|
|
cardtext += "🟠"
|
|
|
|
|
elif cardtype == "yellow":
|
|
|
|
|
cardtext += "🟡"
|
|
|
|
|
elif cardtype == "green":
|
|
|
|
|
cardtext += "🟢"
|
|
|
|
|
elif cardtype == "blue":
|
|
|
|
|
cardtext += "🔵"
|
|
|
|
|
elif cardtype == "purple":
|
|
|
|
|
cardtext += "🟣"
|
|
|
|
|
elif cardtype == "brown":
|
|
|
|
|
cardtext += "🟤"
|
|
|
|
|
elif cardtype == "gray":
|
|
|
|
|
cardtext += "⚪"
|
|
|
|
|
elif cardtype == "special":
|
|
|
|
|
cardtext += "✨"
|
|
|
|
|
cardtext += card + "</span>"
|
|
|
|
|
return cardtext
|
|
|
|
|
|
|
|
|
|
def printcard(card):
|
|
|
|
|
deck = card[:-2]
|
|
|
|
|
cardid = card[-2:]
|
|
|
|
|
return "<img src=\"/decks/" + deck + "/" + cardid + ".gif\" title=\"" + card + "\">"
|
|
|
|
|
if card[0:4] == "sig_":
|
|
|
|
|
return "<img src=\"/decks/sigs/" + card[4:] + ".gif\" title=\"" + card + "\">"
|
|
|
|
|
else:
|
|
|
|
|
deck = card[:-2]
|
|
|
|
|
cardid = card[-2:]
|
|
|
|
|
return "<img src=\"/decks/" + deck + "/" + cardid + ".gif\" title=\"" + card + "\">"
|
|
|
|
|
|
|
|
|
|
def printdeck(deck):
|
|
|
|
|
deckstring = "<table class=\"decktable "
|
|
|
|
|