Fixed: --use-text-set-icon parameter doesnt work.
This commit is contained in:
parent
b4fe9a936a
commit
1e7302c505
@ -90,10 +90,10 @@ class Card(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def getSetText(cls, setName, cardName):
|
def getSetText(cls, setName, cardName):
|
||||||
if setName in cls.setTextIcons:
|
if setName in setTextIcons:
|
||||||
return cls.setTextIcons[setName]
|
return setTextIcons[setName]
|
||||||
if cardName.lower() in cls.promoTextIcons:
|
if cardName.lower() in promoTextIcons:
|
||||||
return cls.promoTextIcons[cardName.lower()]
|
return promoTextIcons[cardName.lower()]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def __init__(self, name, cardset, types, cost, description='', potcost=0, extra=''):
|
def __init__(self, name, cardset, types, cost, description='', potcost=0, extra=''):
|
||||||
@ -133,7 +133,7 @@ class Card(object):
|
|||||||
return setImage
|
return setImage
|
||||||
|
|
||||||
def setTextIcon(self):
|
def setTextIcon(self):
|
||||||
setTextIcon = getSetText(self.cardset, self.name)
|
setTextIcon = Card.getSetText(self.cardset, self.name)
|
||||||
if setTextIcon is None and self.cardset not in ['base', 'extra'] and not self.isExpansion():
|
if setTextIcon is None and self.cardset not in ['base', 'extra'] and not self.isExpansion():
|
||||||
print 'warning, no set text for set "%s" card "%s"' % (self.cardset, self.name)
|
print 'warning, no set text for set "%s" card "%s"' % (self.cardset, self.name)
|
||||||
setTextIcons[self.cardset] = 0
|
setTextIcons[self.cardset] = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user