simplify language mapping to always use english card type tags - we never show them in the generated pdf anyway

This commit is contained in:
Sumpfork committed 2015-11-03 14:34:19 -08:00
1 parent 7db06e2e13
commit b200c9da9d
5 files changed
+291 -336

No files matched your search

-15
View File
@@ -1,17 +1,2 @@
{ {
"Action": "Action",
"Victory": "Victory",
"Attack": "Attack",
"Treasure": "Treasure",
"Reaction": "Reaction",
"Duration": "Duration",
"Prize": "Prize",
"Shelter": "Shelter",
"Ruins": "Ruins",
"Looter": "Looter",
"Curse": "Curse",
"Blank": "Blank",
"Reserve": "Reserve",
"Traveller": "Traveller",
"Event": "Event"
} }
-15
View File
@@ -1,17 +1,2 @@
{ {
"Action": "Action",
"Victory": "Victory",
"Attack": "Attack",
"Treasure": "Treasure",
"Reaction": "Reaction",
"Duration": "Duration",
"Prize": "Prize",
"Shelter": "Shelter",
"Ruins": "Ruins",
"Looter": "Looter",
"Curse": "Curse",
"Blank": "Blank",
"Reserve": "Reserve",
"Traveller": "Traveller",
"Event": "Event"
} }
+290 -290
View File
File diff suppressed because it is too large. Load diff
-11
View File
@@ -1,15 +1,4 @@
{ {
"Azione": "Action",
"Vittoria": "Victory",
"Attacco": "Attack",
"Tesoro": "Treasure",
"Reazione": "Reaction",
"Durata": "Duration",
"Premio": "Prize",
"Looter": "Looter",
"Shelter": "Shelter",
"Ruins": "Ruins",
"Maledizione": "Curse",
"alchimia": "alchemy", "alchimia": "alchemy",
"intrigo": "intrigue", "intrigo": "intrigue",
"nuovi orizzonti": "hinterlands", "nuovi orizzonti": "hinterlands",
+1 -5
View File
@@ -162,11 +162,7 @@ class DominionTabs:
@classmethod @classmethod
def getType(cls, typespec): def getType(cls, typespec):
# Expansion is a custom tag inserted by code below return cls.cardTypes[tuple(typespec)]
if typespec == ('Expansion',):
return cls.cardTypes[typespec]
mapped_spec = tuple([cls.language_mapping[t] for t in typespec])
return cls.cardTypes[mapped_spec]
setImages = { setImages = {
'dominion': 'base_set.png', 'dominion': 'base_set.png',