German promo cards (#77)
* Add German texts for promo cards. * fix logic around missing set images; add translations of german promo card names to mapping
This commit is contained in:
1 parent
0efac2000b
commit
21c4134e9f
3 files changed
+90
-9
No files matched your search
+4
-8
@@ -153,18 +153,14 @@ class Card(object):
|
||||
|
||||
def setImage(self):
|
||||
setImage = Card.getSetImage(self.cardset, self.name)
|
||||
if setImage is None and self.cardset not in ['base', 'extra'] and not self.isExpansion():
|
||||
print 'warning, no set image for set "%s" card "%s"' % (self.cardset, self.name)
|
||||
setImages[self.cardset] = 0
|
||||
promoImages[self.name.lower()] = 0
|
||||
if setImage is None and self.cardset != 'base':
|
||||
print 'warning, no set image for set "{}" card "{}"'.format(self.cardset, self.name)
|
||||
return setImage
|
||||
|
||||
def setTextIcon(self):
|
||||
setTextIcon = Card.getSetText(self.cardset, self.name)
|
||||
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)
|
||||
setTextIcons[self.cardset] = 0
|
||||
promoTextIcons[self.name.lower()] = 0
|
||||
if setTextIcon is None and self.cardset != 'base':
|
||||
print 'warning, no set text for set "{}" card "{}"'.format(self.cardset, self.name)
|
||||
return setTextIcon
|
||||
|
||||
def isBlank(self):
|
||||
|
||||
Reference in new issue
Block a user