animals user expansion from BBG user rillaith (#148)

* animals user expansion from BBG user rillaith
* Added fan attribute to animals set
* animals.png - This is not the best image.  But it is the best I could get from the original files. I *think* it is 3 penguins.
* updated main.py for fan based expansions
This includes two items:
1) adds --fan for specifying fan expansions to include
2) adds wild cards in specifying both --expansion as well as --fan.  This also fixes issue #149
* Updated all language files for animals
* Normalize all line endings and add gitattributes file to make git do so in the future
* print the possible expansions when non-matching ones are provided
* Allow for no official expansions to be included
Kept the default behavior.  Not specifying '--expansions' will have the same outcome as '--expansions *' (i.e., will print all of them.)
Specifying '--expansions  ' (without any named expansions) or '--expansions none ' will result in no cards from any Official expansion.

For Fan expansions, the absence of '--fan', '--fan   ' (without any named fan expansion), and '--fan none ' will all prevent any Fan expansions from printing.
* Cleaned up expansion/fan lists
This commit is contained in:
Peter 2017-03-25 21:39:49 -07:00 committed by GitHub
parent 3578804882
commit c5c876f8c5
34 changed files with 20747 additions and 20474 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
* text=auto
*.py text
*.json text

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,96 +1,100 @@
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchemy",
"text_icon": "A"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterlands",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrigue 1st Edition",
"short_name": "Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigue 2nd Edition",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigue 2nd Edition Upgrade",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Po"
},
"prosperity": {
"set_name": "Prosperity",
"text_icon": "Py"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchemy",
"text_icon": "A"
},
"animals": {
"set_name": "Animals",
"text_icon": "An"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterlands",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrigue 1st Edition",
"short_name": "Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigue 2nd Edition",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigue 2nd Edition Upgrade",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Po"
},
"prosperity": {
"set_name": "Prosperity",
"text_icon": "Py"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}

View File

@ -1,26 +1,26 @@
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}

View File

@ -1,19 +1,19 @@
{
"exclude": [
"Token",
"Tokens",
"Marker"
],
"include": [
"Coins",
"Coin",
"Karten",
"Karte",
"Käufe",
"Kauf",
"Aktionen",
"Aktion",
"Punkt",
"Punkte"
]
{
"exclude": [
"Token",
"Tokens",
"Marker"
],
"include": [
"Coins",
"Coin",
"Karten",
"Karte",
"Käufe",
"Kauf",
"Aktionen",
"Aktion",
"Punkt",
"Punkte"
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,96 +1,100 @@
{
"adventures": {
"set_name": "Abenteuer",
"text_icon": "Ab"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Die Alchemisten",
"text_icon": "Al"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Reiche Ernte",
"text_icon": "RE"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1. Ausgabe",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2. Ausgabe",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2. Ausgabe Aktualisierung",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "Ex"
},
"guilds": {
"set_name": "Die Gilden",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterland",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrige 2. Ausgabe",
"short_name": "Intrige",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrige 2. Ausgabe",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrige 2. Ausgabe Aktualisierung",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Blütezeit",
"text_icon": "Bl"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}
{
"adventures": {
"set_name": "Abenteuer",
"text_icon": "Ab"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Die Alchemisten",
"text_icon": "Al"
},
"animals": {
"set_name": "Animals",
"text_icon": "An"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Reiche Ernte",
"text_icon": "RE"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1. Ausgabe",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2. Ausgabe",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2. Ausgabe Aktualisierung",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "Ex"
},
"guilds": {
"set_name": "Die Gilden",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterland",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrige 2. Ausgabe",
"short_name": "Intrige",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrige 2. Ausgabe",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrige 2. Ausgabe Aktualisierung",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Blütezeit",
"text_icon": "Bl"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}

View File

@ -1,26 +1,26 @@
{
"Action": "Aktion",
"Attack": "Angriff",
"Blank": "Blank",
"Castle": "Schloss",
"Curse": "Fluch",
"Duration": "Dauer",
"Event": "Ereignis",
"Events": "Ereignisse",
"Expansion": "Erweiterung",
"Gathering": "Sammlung",
"Landmark": "Wahrzeichen",
"Landmarks": "Wahrzeichen",
"Looter": "Plünderer",
"Prize": "Preis",
"Prizes": "Preise",
"Reaction": "Reaktion",
"Reserve": "Reserve",
"Ruins": "Ruinen",
"Shelter": "Unterschlupf",
"Shelters": "Unterschlüpfe",
"Trash": "Müll",
"Traveller": "Reisender",
"Treasure": "Geld",
"Victory": "Punkte"
}
{
"Action": "Aktion",
"Attack": "Angriff",
"Blank": "Blank",
"Castle": "Schloss",
"Curse": "Fluch",
"Duration": "Dauer",
"Event": "Ereignis",
"Events": "Ereignisse",
"Expansion": "Erweiterung",
"Gathering": "Sammlung",
"Landmark": "Wahrzeichen",
"Landmarks": "Wahrzeichen",
"Looter": "Plünderer",
"Prize": "Preis",
"Prizes": "Preise",
"Reaction": "Reaktion",
"Reserve": "Reserve",
"Ruins": "Ruinen",
"Shelter": "Unterschlupf",
"Shelters": "Unterschlüpfe",
"Trash": "Müll",
"Traveller": "Reisender",
"Treasure": "Geld",
"Victory": "Punkte"
}

View File

@ -1,17 +1,17 @@
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Cards",
"Card",
"Buys",
"Buy",
"Actions",
"Action",
"<VP>"
]
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Cards",
"Card",
"Buys",
"Buy",
"Actions",
"Action",
"<VP>"
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,96 +1,100 @@
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchemy",
"text_icon": "A"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterlands",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrigue 1st Edition",
"short_name": "Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigue 2nd Edition",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigue 2nd Edition Upgrade",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Prosperity",
"text_icon": "P"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchemy",
"text_icon": "A"
},
"animals": {
"set_name": "Animals",
"text_icon": "An"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterlands",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrigue 1st Edition",
"short_name": "Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigue 2nd Edition",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigue 2nd Edition Upgrade",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Prosperity",
"text_icon": "P"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}

View File

@ -1,26 +1,26 @@
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}

View File

@ -1,16 +1,16 @@
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Cards",
"Card",
"Buys",
"Buy",
"Actions",
"Action"
]
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Cards",
"Card",
"Buys",
"Buy",
"Actions",
"Action"
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,96 +1,100 @@
{
"adventures": {
"set_name": "Aventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchimie",
"text_icon": "Al"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Abondance",
"text_icon": "Ab"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Age Des Ténèbres",
"text_icon": "AT"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1er Édition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2e Édition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2e Édition Surclassement",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Supplémentaire",
"text_icon": "S"
},
"guilds": {
"set_name": "Guildes",
"text_icon": "G"
},
"hinterlands": {
"set_name": "L'Arrière-pays",
"text_icon": "Ar"
},
"intrigue1stEdition": {
"set_name": "L'Intrigue 1er Édition",
"short_name": "L'Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "L'Intrigue 2e Édition",
"short_name": "L'Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "L'Intrigue 2e Édition Surclassement",
"short_name": "L'Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Prosperité",
"text_icon": "P"
},
"seaside": {
"set_name": "Rivages",
"text_icon": "R"
}
}
{
"adventures": {
"set_name": "Aventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchimie",
"text_icon": "Al"
},
"animals": {
"set_name": "Animals",
"text_icon": "An"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Abondance",
"text_icon": "Ab"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Age Des Ténèbres",
"text_icon": "AT"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1er Édition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2e Édition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2e Édition Surclassement",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Supplémentaire",
"text_icon": "S"
},
"guilds": {
"set_name": "Guildes",
"text_icon": "G"
},
"hinterlands": {
"set_name": "L'Arrière-pays",
"text_icon": "Ar"
},
"intrigue1stEdition": {
"set_name": "L'Intrigue 1er Édition",
"short_name": "L'Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "L'Intrigue 2e Édition",
"short_name": "L'Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "L'Intrigue 2e Édition Surclassement",
"short_name": "L'Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Prosperité",
"text_icon": "P"
},
"seaside": {
"set_name": "Rivages",
"text_icon": "R"
}
}

View File

@ -1,26 +1,26 @@
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}

View File

@ -1,16 +1,16 @@
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Monete",
"Moneta",
"Carte",
"Carta",
"Acquisti",
"Acquisto",
"Azioni",
"Azione"
]
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Monete",
"Moneta",
"Carte",
"Carta",
"Acquisti",
"Acquisto",
"Azioni",
"Azione"
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,96 +1,100 @@
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchimia",
"text_icon": "Al"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "D"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1° Edizione",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2° Edizione",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2° Edizione di Aggiornamento",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extra",
"text_icon": "Ex"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Nuovi Orizzonti",
"text_icon": "NO"
},
"intrigue1stEdition": {
"set_name": "Intrigo 2° Edizione",
"short_name": "Intrigo",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigo 2° Edizione",
"short_name": "Intrigo",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigo 2° Edizione di Aggiornamento",
"short_name": "Intrigo",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Prosperità",
"text_icon": "P"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchimia",
"text_icon": "Al"
},
"animals": {
"set_name": "Animals",
"text_icon": "An"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "D"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1° Edizione",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2° Edizione",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2° Edizione di Aggiornamento",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extra",
"text_icon": "Ex"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Nuovi Orizzonti",
"text_icon": "NO"
},
"intrigue1stEdition": {
"set_name": "Intrigo 2° Edizione",
"short_name": "Intrigo",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigo 2° Edizione",
"short_name": "Intrigo",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigo 2° Edizione di Aggiornamento",
"short_name": "Intrigo",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Prosperità",
"text_icon": "P"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}

View File

@ -1,26 +1,26 @@
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}

View File

@ -1,17 +1,17 @@
{
"exclude": [
"fiche",
"Token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Kaarten",
"Kaart",
"Aanschaffen",
"Aanschaf",
"Acties",
"Actie"
]
{
"exclude": [
"fiche",
"Token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Kaarten",
"Kaart",
"Aanschaffen",
"Aanschaf",
"Acties",
"Actie"
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,96 +1,100 @@
{
"adventures": {
"set_name": "Avonturen",
"text_icon": "Av"
},
"adventures extras": {
"set_name": "Avonturen Extras",
"text_icon": "Av"
},
"alchemy": {
"set_name": "Alchemisten",
"text_icon": "A"
},
"base": {
"set_name": "Basis",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Overvloed",
"text_icon": "O"
},
"cornucopia extras": {
"set_name": "Overvloed Extras",
"text_icon": "O"
},
"dark ages": {
"set_name": "De Donkere Middeleeuwen",
"text_icon": "DM"
},
"dark ages extras": {
"set_name": "De Donkere Middeleeuwen Extras",
"text_icon": "DM"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Gilden",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Achterland",
"text_icon": "Ac"
},
"intrigue1stEdition": {
"set_name": "Intrige 1st Edition",
"short_name": "Intrige",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrige 2nd Edition",
"short_name": "Intrige",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrige 2nd Edition Upgrade",
"short_name": "Intrige",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Welvaart",
"text_icon": "W"
},
"seaside": {
"set_name": "Hijs De Zeilen",
"text_icon": "HZ"
}
}
{
"adventures": {
"set_name": "Avonturen",
"text_icon": "Av"
},
"adventures extras": {
"set_name": "Avonturen Extras",
"text_icon": "Av"
},
"alchemy": {
"set_name": "Alchemisten",
"text_icon": "A"
},
"animals": {
"set_name": "Animals",
"text_icon": "An"
},
"base": {
"set_name": "Basis",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Overvloed",
"text_icon": "O"
},
"cornucopia extras": {
"set_name": "Overvloed Extras",
"text_icon": "O"
},
"dark ages": {
"set_name": "De Donkere Middeleeuwen",
"text_icon": "DM"
},
"dark ages extras": {
"set_name": "De Donkere Middeleeuwen Extras",
"text_icon": "DM"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Gilden",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Achterland",
"text_icon": "Ac"
},
"intrigue1stEdition": {
"set_name": "Intrige 1st Edition",
"short_name": "Intrige",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrige 2nd Edition",
"short_name": "Intrige",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrige 2nd Edition Upgrade",
"short_name": "Intrige",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Pm"
},
"prosperity": {
"set_name": "Welvaart",
"text_icon": "W"
},
"seaside": {
"set_name": "Hijs De Zeilen",
"text_icon": "HZ"
}
}

View File

@ -1,26 +1,26 @@
{
"Action": "Actie",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prijs",
"Prizes": "Prijzen",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruïne",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Vernietigde Kaarten",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}
{
"Action": "Actie",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prijs",
"Prizes": "Prijzen",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruïne",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Vernietigde Kaarten",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}

View File

@ -1,206 +1,216 @@
{
"adventures": {
"edition": [
"1",
"latest"
],
"image": "adventures_set.png",
"set_name": "*adventures*",
"text_icon": "*"
},
"adventures extras": {
"edition": [
"1",
"latest"
],
"image": "adventures_set.png",
"no_randomizer": true,
"set_name": "*adventures extras*",
"text_icon": "*"
},
"alchemy": {
"edition": [
"1",
"latest"
],
"image": "alchemy_set.png",
"set_name": "*alchemy*",
"text_icon": "*"
},
"base": {
"edition": [
"1",
"2",
"latest"
],
"image": "",
"set_name": "*base*",
"text_icon": "*"
},
"cornucopia": {
"edition": [
"1",
"latest"
],
"image": "cornucopia_set.png",
"set_name": "*cornucopia*",
"text_icon": "*"
},
"cornucopia extras": {
"edition": [
"1",
"latest"
],
"image": "cornucopia_set.png",
"no_randomizer": true,
"set_name": "*cornucopia extras*",
"text_icon": "*"
},
"dark ages": {
"edition": [
"1",
"latest"
],
"image": "dark_ages_set.png",
"set_name": "*dark ages*",
"text_icon": "*"
},
"dark ages extras": {
"edition": [
"1",
"latest"
],
"image": "dark_ages_set.png",
"no_randomizer": true,
"set_name": "*dark ages extras*",
"text_icon": "*"
},
"dominion1stEdition": {
"edition": [
"1"
],
"image": "dominion1stEdition_set.png",
"set_name": "*dominion1stEdition*",
"short_name": "Dominion",
"text_icon": "*"
},
"dominion2ndEdition": {
"edition": [
"2",
"latest"
],
"image": "dominion2ndEdition_set.png",
"set_name": "*dominion2ndEdition*",
"short_name": "Dominion",
"text_icon": "*"
},
"dominion2ndEditionUpgrade": {
"edition": [
"1"
],
"image": "dominion2ndEdition_set.png",
"set_name": "*dominion2ndEditionUpgrade*",
"text_icon": "*"
},
"empires": {
"edition": [
"1",
"latest"
],
"image": "empires_set.png",
"set_name": "*empires*",
"text_icon": "*"
},
"empires extras": {
"edition": [
"1",
"latest"
],
"image": "empires_set.png",
"no_randomizer": true,
"set_name": "*empires extras*",
"text_icon": "*"
},
"extras": {
"edition": [
"1",
"latest"
],
"image": "",
"no_randomizer": true,
"set_name": "*extras*",
"text_icon": "*"
},
"guilds": {
"edition": [
"1",
"latest"
],
"image": "guilds_set.png",
"set_name": "*guilds*",
"text_icon": "*"
},
"hinterlands": {
"edition": [
"1",
"latest"
],
"image": "hinterlands_set.png",
"set_name": "*hinterlands*",
"text_icon": "*"
},
"intrigue1stEdition": {
"edition": [
"1"
],
"image": "intrigue1stEdition_set.png",
"set_name": "*intrigue1stEdition*",
"short_name": "Intrigue",
"text_icon": "*"
},
"intrigue2ndEdition": {
"edition": [
"2",
"latest"
],
"image": "intrigue2ndEdition_set.png",
"set_name": "*intrigue2ndEdition*",
"short_name": "Intrigue",
"text_icon": "*"
},
"intrigue2ndEditionUpgrade": {
"edition": [
"1"
],
"image": "intrigue2ndEdition_set.png",
"set_name": "*intrigue2ndEditionUpgrade*",
"text_icon": "*"
},
"promo": {
"edition": [
"1",
"latest"
],
"image": "promo_set.png",
"set_name": "*promo*",
"text_icon": "*"
},
"prosperity": {
"edition": [
"1",
"latest"
],
"image": "prosperity_set.png",
"set_name": "*prosperity*",
"text_icon": "*"
},
"seaside": {
"edition": [
"1",
"latest"
],
"image": "seaside_set.png",
"set_name": "*seaside*",
"text_icon": "*"
}
}
{
"adventures": {
"edition": [
"1",
"latest"
],
"image": "adventures_set.png",
"set_name": "*adventures*",
"text_icon": "*"
},
"adventures extras": {
"edition": [
"1",
"latest"
],
"image": "adventures_set.png",
"no_randomizer": true,
"set_name": "*adventures extras*",
"text_icon": "*"
},
"alchemy": {
"edition": [
"1",
"latest"
],
"image": "alchemy_set.png",
"set_name": "*alchemy*",
"text_icon": "*"
},
"animals": {
"edition": [
"1",
"latest"
],
"fan": true,
"image": "animals.png",
"set_name": "*animals*",
"text_icon": "*"
},
"base": {
"edition": [
"1",
"2",
"latest"
],
"image": "",
"set_name": "*base*",
"text_icon": "*"
},
"cornucopia": {
"edition": [
"1",
"latest"
],
"image": "cornucopia_set.png",
"set_name": "*cornucopia*",
"text_icon": "*"
},
"cornucopia extras": {
"edition": [
"1",
"latest"
],
"image": "cornucopia_set.png",
"no_randomizer": true,
"set_name": "*cornucopia extras*",
"text_icon": "*"
},
"dark ages": {
"edition": [
"1",
"latest"
],
"image": "dark_ages_set.png",
"set_name": "*dark ages*",
"text_icon": "*"
},
"dark ages extras": {
"edition": [
"1",
"latest"
],
"image": "dark_ages_set.png",
"no_randomizer": true,
"set_name": "*dark ages extras*",
"text_icon": "*"
},
"dominion1stEdition": {
"edition": [
"1"
],
"image": "dominion1stEdition_set.png",
"set_name": "*dominion1stEdition*",
"short_name": "Dominion",
"text_icon": "*"
},
"dominion2ndEdition": {
"edition": [
"2",
"latest"
],
"image": "dominion2ndEdition_set.png",
"set_name": "*dominion2ndEdition*",
"short_name": "Dominion",
"text_icon": "*"
},
"dominion2ndEditionUpgrade": {
"edition": [
"1"
],
"image": "dominion2ndEdition_set.png",
"set_name": "*dominion2ndEditionUpgrade*",
"text_icon": "*"
},
"empires": {
"edition": [
"1",
"latest"
],
"image": "empires_set.png",
"set_name": "*empires*",
"text_icon": "*"
},
"empires extras": {
"edition": [
"1",
"latest"
],
"image": "empires_set.png",
"no_randomizer": true,
"set_name": "*empires extras*",
"text_icon": "*"
},
"extras": {
"edition": [
"1",
"latest"
],
"image": "",
"no_randomizer": true,
"set_name": "*extras*",
"text_icon": "*"
},
"guilds": {
"edition": [
"1",
"latest"
],
"image": "guilds_set.png",
"set_name": "*guilds*",
"text_icon": "*"
},
"hinterlands": {
"edition": [
"1",
"latest"
],
"image": "hinterlands_set.png",
"set_name": "*hinterlands*",
"text_icon": "*"
},
"intrigue1stEdition": {
"edition": [
"1"
],
"image": "intrigue1stEdition_set.png",
"set_name": "*intrigue1stEdition*",
"short_name": "Intrigue",
"text_icon": "*"
},
"intrigue2ndEdition": {
"edition": [
"2",
"latest"
],
"image": "intrigue2ndEdition_set.png",
"set_name": "*intrigue2ndEdition*",
"short_name": "Intrigue",
"text_icon": "*"
},
"intrigue2ndEditionUpgrade": {
"edition": [
"1"
],
"image": "intrigue2ndEdition_set.png",
"set_name": "*intrigue2ndEditionUpgrade*",
"text_icon": "*"
},
"promo": {
"edition": [
"1",
"latest"
],
"image": "promo_set.png",
"set_name": "*promo*",
"text_icon": "*"
},
"prosperity": {
"edition": [
"1",
"latest"
],
"image": "prosperity_set.png",
"set_name": "*prosperity*",
"text_icon": "*"
},
"seaside": {
"edition": [
"1",
"latest"
],
"image": "seaside_set.png",
"set_name": "*seaside*",
"text_icon": "*"
}
}

View File

@ -1,371 +1,371 @@
[{
"card_type": [
"Action"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Duration"
],
"card_type_image": "duration.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Looter"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Prize"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Traveller"
],
"card_type_image": "action.png",
"defaultCardCount": 5,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Duration"
],
"card_type_image": "duration.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Duration",
"Reaction"
],
"card_type_image": "duration-reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Gathering"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Looter"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Prize"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Reaction"
],
"card_type_image": "reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Reserve"
],
"card_type_image": "reserve.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Reserve",
"Victory"
],
"card_type_image": "reserve-victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Ruins"
],
"card_type_image": "ruins.png",
"defaultCardCount": 10,
"tabCostHeightOffset": 1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Shelter"
],
"card_type_image": "action-shelter.png",
"defaultCardCount": 6,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Traveller"
],
"card_type_image": "action.png",
"defaultCardCount": 5,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Treasure"
],
"card_type_image": "action-treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Victory"
],
"card_type_image": "action-victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Blank"
],
"card_type_image": "",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Curse"
],
"card_type_image": "curse.png",
"defaultCardCount": 30,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 3
},{
"card_type": [
"Event"
],
"card_type_image": "event.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Events"
],
"card_type_image": "event.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Expansion"
],
"card_type_image": "expansion.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 4
},{
"card_type": [
"Landmark"
],
"card_type_image": "landmark.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Landmarks"
],
"card_type_image": "landmark.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Prize"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Prizes"
],
"card_type_image": "action.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Reaction"
],
"card_type_image": "reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Reaction",
"Shelter"
],
"card_type_image": "reaction-shelter.png",
"defaultCardCount": 6,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Shelters"
],
"card_type_image": "shelter.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Trash"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure"
],
"card_type_image": "treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": 0,
"tabTextHeightOffset": 3
},{
"card_type": [
"Treasure",
"Attack"
],
"card_type_image": "treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure",
"Prize"
],
"card_type_image": "treasure.png",
"defaultCardCount": 1,
"tabCostHeightOffset": 0,
"tabTextHeightOffset": 3
},{
"card_type": [
"Treasure",
"Reaction"
],
"card_type_image": "treasure-reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": 1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure",
"Reserve"
],
"card_type_image": "reserve-treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure",
"Victory"
],
"card_type_image": "treasure-victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory"
],
"card_type_image": "victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory",
"Castle"
],
"card_type_image": "victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory",
"Reaction"
],
"card_type_image": "victory-reaction.png",
"defaultCardCount": 12,
"tabCostHeightOffset": 1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory",
"Shelter"
],
"card_type_image": "victory-shelter.png",
"defaultCardCount": 6,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
}
]
[{
"card_type": [
"Action"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Duration"
],
"card_type_image": "duration.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Looter"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Prize"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Attack",
"Traveller"
],
"card_type_image": "action.png",
"defaultCardCount": 5,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Duration"
],
"card_type_image": "duration.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Duration",
"Reaction"
],
"card_type_image": "duration-reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Gathering"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Looter"
],
"card_type_image": "action.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Prize"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Reaction"
],
"card_type_image": "reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Reserve"
],
"card_type_image": "reserve.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Reserve",
"Victory"
],
"card_type_image": "reserve-victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Ruins"
],
"card_type_image": "ruins.png",
"defaultCardCount": 10,
"tabCostHeightOffset": 1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Shelter"
],
"card_type_image": "action-shelter.png",
"defaultCardCount": 6,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Traveller"
],
"card_type_image": "action.png",
"defaultCardCount": 5,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Treasure"
],
"card_type_image": "action-treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Action",
"Victory"
],
"card_type_image": "action-victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Blank"
],
"card_type_image": "",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Curse"
],
"card_type_image": "curse.png",
"defaultCardCount": 30,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 3
},{
"card_type": [
"Event"
],
"card_type_image": "event.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Events"
],
"card_type_image": "event.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Expansion"
],
"card_type_image": "expansion.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 4
},{
"card_type": [
"Landmark"
],
"card_type_image": "landmark.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Landmarks"
],
"card_type_image": "landmark.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Prize"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Prizes"
],
"card_type_image": "action.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Reaction"
],
"card_type_image": "reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Reaction",
"Shelter"
],
"card_type_image": "reaction-shelter.png",
"defaultCardCount": 6,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Shelters"
],
"card_type_image": "shelter.png",
"defaultCardCount": 0,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Trash"
],
"card_type_image": "action.png",
"defaultCardCount": 1,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure"
],
"card_type_image": "treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": 0,
"tabTextHeightOffset": 3
},{
"card_type": [
"Treasure",
"Attack"
],
"card_type_image": "treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure",
"Prize"
],
"card_type_image": "treasure.png",
"defaultCardCount": 1,
"tabCostHeightOffset": 0,
"tabTextHeightOffset": 3
},{
"card_type": [
"Treasure",
"Reaction"
],
"card_type_image": "treasure-reaction.png",
"defaultCardCount": 10,
"tabCostHeightOffset": 1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure",
"Reserve"
],
"card_type_image": "reserve-treasure.png",
"defaultCardCount": 10,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Treasure",
"Victory"
],
"card_type_image": "treasure-victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory"
],
"card_type_image": "victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory",
"Castle"
],
"card_type_image": "victory.png",
"defaultCardCount": 12,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory",
"Reaction"
],
"card_type_image": "victory-reaction.png",
"defaultCardCount": 12,
"tabCostHeightOffset": 1,
"tabTextHeightOffset": 0
},{
"card_type": [
"Victory",
"Shelter"
],
"card_type_image": "victory-shelter.png",
"defaultCardCount": 6,
"tabCostHeightOffset": -1,
"tabTextHeightOffset": 0
}
]

View File

@ -1,16 +1,17 @@
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Cards",
"Card",
"Buys",
"Buy",
"Actions",
"Action"
]
{
"exclude": [
"token",
"Tokens"
],
"include": [
"Coins",
"Coin",
"Cards",
"Card",
"Buys",
"Buy",
"Actions",
"Action",
"<VP>"
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,96 +1,100 @@
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchemy",
"text_icon": "A"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterlands",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrigue 1st Edition",
"short_name": "Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigue 2nd Edition",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigue 2nd Edition Upgrade",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Po"
},
"prosperity": {
"set_name": "Prosperity",
"text_icon": "Py"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}
{
"adventures": {
"set_name": "Adventures",
"text_icon": "Ad"
},
"adventures extras": {
"set_name": "Adventures Extras",
"text_icon": "Ad"
},
"alchemy": {
"set_name": "Alchemy",
"text_icon": "A"
},
"animals": {
"set_name": "Animals",
"text_icon": "An"
},
"base": {
"set_name": "Base",
"text_icon": "B"
},
"cornucopia": {
"set_name": "Cornucopia",
"text_icon": "C"
},
"cornucopia extras": {
"set_name": "Cornucopia Extras",
"text_icon": "C"
},
"dark ages": {
"set_name": "Dark Ages",
"text_icon": "DA"
},
"dark ages extras": {
"set_name": "Dark Ages Extras",
"text_icon": "DA"
},
"dominion1stEdition": {
"set_name": "Dominion 1st Edition",
"short_name": "Dominion",
"text_icon": "D1"
},
"dominion2ndEdition": {
"set_name": "Dominion 2nd Edition",
"short_name": "Dominion",
"text_icon": "D2"
},
"dominion2ndEditionUpgrade": {
"set_name": "Dominion 2nd Edition Upgrade",
"short_name": "Dominion",
"text_icon": "D2"
},
"empires": {
"set_name": "Empires",
"text_icon": "E"
},
"empires extras": {
"set_name": "Empires Extras",
"text_icon": "E"
},
"extras": {
"set_name": "Extras",
"text_icon": "X"
},
"guilds": {
"set_name": "Guilds",
"text_icon": "G"
},
"hinterlands": {
"set_name": "Hinterlands",
"text_icon": "H"
},
"intrigue1stEdition": {
"set_name": "Intrigue 1st Edition",
"short_name": "Intrigue",
"text_icon": "I1"
},
"intrigue2ndEdition": {
"set_name": "Intrigue 2nd Edition",
"short_name": "Intrigue",
"text_icon": "I2"
},
"intrigue2ndEditionUpgrade": {
"set_name": "Intrigue 2nd Edition Upgrade",
"short_name": "Intrigue",
"text_icon": "I2"
},
"promo": {
"set_name": "Promo",
"text_icon": "Po"
},
"prosperity": {
"set_name": "Prosperity",
"text_icon": "Py"
},
"seaside": {
"set_name": "Seaside",
"text_icon": "S"
}
}

View File

@ -1,26 +1,26 @@
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}
{
"Action": "Action",
"Attack": "Attack",
"Blank": "Blank",
"Castle": "Castle",
"Curse": "Curse",
"Duration": "Duration",
"Event": "Event",
"Events": "Events",
"Expansion": "Expansion",
"Gathering": "Gathering",
"Landmark": "Landmark",
"Landmarks": "Landmarks",
"Looter": "Looter",
"Prize": "Prize",
"Prizes": "Prizes",
"Reaction": "Reaction",
"Reserve": "Reserve",
"Ruins": "Ruins",
"Shelter": "Shelter",
"Shelters": "Shelters",
"Trash": "Trash",
"Traveller": "Traveller",
"Treasure": "Treasure",
"Victory": "Victory"
}

BIN
domdiv/images/animals.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -4,7 +4,7 @@ import json
import sys
import argparse
import copy
import fnmatch
import pkg_resources
import reportlab.lib.pagesizes as pagesizes
@ -26,6 +26,7 @@ EXPANSION_CHOICES = ["adventures", "alchemy", "base", "cornucopia", "dark ages",
"empires", "guilds", "hinterlands",
"intrigue1stEdition", "intrigue2ndEdition", "intrigue2ndEditionUpgrade",
"promo", "prosperity", "seaside"]
FAN_CHOICES = ["animals"]
ORDER_CHOICES = ["expansion", "global", "colour", "cost"]
LANGUAGE_DEFAULT = 'en_us' # the primary language used if a language's parts are missing
@ -240,11 +241,28 @@ def parse_opts(cmdline_args=None):
"If no limits are set, then all expansions are included. "
"Expansion names can also be given in the language specified by "
"the --language parameter. Any expansion with a space in the name must "
"be enclosed in quotes. This may be called multiple times. "
"Values are not case sensitive and can also match the starting characters "
"of an expansion name. For example, 'dominion' will match all expansions "
"that start with that name; Choices available in all languages include: %s" %
"be enclosed in double quotes. This may be called multiple times. "
"Values are not case sensitive. Wildcards may be used: "
"'*' any number of characters, '?' matches any single character, "
"'[seq]' matches any character in seq, and '[!seq]' matches any character not in seq. "
"For example, 'dominion*' will match all expansions that start with 'dominion'. "
"Choices available in all languages include: %s" %
", ".join("%s" % x for x in EXPANSION_CHOICES))
group_select.add_argument(
"--fan",
nargs="*",
action="append",
dest="fan",
help="Add dividers from the specified fan made expansions. "
"If this option is not used, no fan expansions will be included. "
"Fan made expansion names can also be given in the language specified by "
"the --language parameter. Any fan expansion with a space in the name must "
"be enclosed in double quotes. This may be called multiple times. "
"Values are not case sensitive. Wildcards may be used: "
"'*' any number of characters, '?' matches any single character, "
"'[seq]' matches any character in seq, and '[!seq]' matches any character not in seq. "
"Choices available in all languages include: %s" %
", ".join("%s" % x for x in FAN_CHOICES))
group_select.add_argument(
"--edition",
choices=EDITION_CHOICES,
@ -410,9 +428,25 @@ def parse_opts(cmdline_args=None):
if options.notch:
options.notch_length = 1.5
if options.expansions:
# options.expansions is a list of lists. Reduce to single list
options.expansions = [item for sublist in options.expansions for item in sublist]
if options.expansions is None:
# No instance given, so default to all Official expansions
options.expansions = ['*']
else:
# options.expansions is a list of lists. Reduce to single lowercase list
options.expansions = [item.lower() for sublist in options.expansions for item in sublist]
if 'none' in options.expansions:
# keyword to indicate no options. Same as --expansions without any expansions given.
options.expansions = []
if options.fan is None:
# No instance given, so default to no Fan expansions
options.fan = []
else:
# options.fan is a list of lists. Reduce to single lowercase list
options.fan = [item.lower() for sublist in options.fan for item in sublist]
if 'none' in options.fan:
# keyword to indicate no options. Same as --fan without any expansions given
options.fan = []
return options
@ -507,8 +541,9 @@ def read_card_data(options):
Card.sets = json.load(setfile)
assert Card.sets, "Could not load any sets from database"
for s in Card.sets:
if 'no_randomizer' not in Card.sets[s]:
Card.sets[s]['no_randomizer'] = False
# Make sure these are set either True or False
Card.sets[s]['no_randomizer'] = Card.sets[s].get('no_randomizer', False)
Card.sets[s]['fan'] = Card.sets[s].get('fan', False)
# Set cardset_tag and expand cards that are used in multiple sets
new_cards = []
@ -812,37 +847,81 @@ def filter_sort_cards(cards, options):
if options.language != LANGUAGE_DEFAULT:
Card.sets = add_set_text(options, Card.sets, options.language)
for card in cards:
if card.cardset_tag in Card.sets:
if 'set_name' in Card.sets[card.cardset_tag].keys():
card.cardset = Card.sets[card.cardset_tag]['set_name']
# Split out Official and Fan set information
Official_sets = set() # Will hold official sets
Official_search = [] # Will hold official sets for searching, both set key and set_name
Fan_sets = set() # Will hold fan sets
Fan_search = [] # Will hold fan sets for searching, both set key and set_name
wantedSets = set() # Will hold all the sets requested for printing
for s in Card.sets:
if Card.sets[s].get("fan", False):
# Fan Expansion
Fan_sets.add(s)
Fan_search.extend([s.lower(), Card.sets[s].get('set_name', None).lower()])
else:
# Official Expansion
Official_sets.add(s)
Official_search.extend([s.lower(), Card.sets[s].get('set_name', None).lower()])
# If expansion names given, then remove any cards not in those expansions
# If expansion names given, then find out which expansions are requested
# Expansion names can be the names from the language or the cardset_tag
if options.expansions:
options.expansions = set([e.lower() for e in options.expansions])
wantedExpansions = set()
knownExpansions = set()
# Match sets that either start with the expansion set key (used by cardset_tag)
# or the actual name of the set/expansion in the specified language.
# Expand out any wildcards, matching set key or set name in the given language
expanded_expansions = []
for e in options.expansions:
for s in Card.sets:
if (s.lower().startswith(e) or
Card.sets[s].get('set_name', "").lower().startswith(e)):
wantedExpansions.add(s)
knownExpansions.add(e)
matches = fnmatch.filter(Official_search, e)
if matches:
expanded_expansions.extend(matches)
else:
expanded_expansions.append(e)
# Now get the actual sets that are matched above
options.expansions = set([e for e in expanded_expansions]) # Remove duplicates
knownExpansions = set()
for e in options.expansions:
for s in Official_sets:
if (s.lower() == e or Card.sets[s].get('set_name', "").lower() == e):
wantedSets.add(s)
knownExpansions.add(e)
# Give indication if an imput did not match anything
unknownExpansions = options.expansions - knownExpansions
if unknownExpansions:
print "Error - unknown expansion(s): %s" % ", ".join(unknownExpansions)
# Now keep only the cards that were in the expansions requested
filteredCards = []
for c in cards:
if c.cardset_tag in wantedExpansions:
filteredCards.append(c)
cards = filteredCards
# Take care of fan expansions. Fan expansions must be explicitly named to be added.
# If no --fan is given, then no fan cards are added.
# Fan expansion names can be the names from the language or the cardset_tag
if options.fan:
# Expand out any wildcards, matching set key or set name in the given language
expanded_expansions = []
for e in options.fan:
matches = fnmatch.filter(Fan_search, e)
if matches:
expanded_expansions.extend(matches)
else:
expanded_expansions.append(e)
# Now get the actual sets that are matched above
options.fan = set([e for e in expanded_expansions]) # Remove duplicates
knownExpansions = set()
for e in options.fan:
for s in Fan_sets:
if (s.lower() == e or Card.sets[s].get('set_name', "").lower() == e):
wantedSets.add(s)
knownExpansions.add(e)
# Give indication if an imput did not match anything
unknownExpansions = options.fan - knownExpansions
if unknownExpansions:
print "Error - unknown fan expansion(s): %s" % ", ".join(unknownExpansions)
# Now keep only the cards that are in the sets that have been requested
keep_cards = []
for c in cards:
if c.cardset_tag in wantedSets:
# Add the cardset informaiton to the card and add it to the list of cards to use
c.cardset = Card.sets[c.cardset_tag].get('set_name', c.cardset_tag)
keep_cards.append(c)
cards = keep_cards
# Now add text to the cards. Waited as long as possible to catch all groupings
cards = add_card_text(options, cards, LANGUAGE_DEFAULT)

View File

@ -9,7 +9,7 @@ class TestCardDB(unittest.TestCase):
options = main.parse_opts([])
options.data_path = '.'
cards = main.read_card_data(options)
self.assertEquals(len(cards), 445)
self.assertEquals(len(cards), 448)
valid_cardsets = {
u'base',
u'dominion1stEdition',
@ -32,7 +32,8 @@ class TestCardDB(unittest.TestCase):
u'empires',
u'empires extras',
u'promo',
u'extras'
u'extras',
u'animals'
}
for c in cards:
self.assertIsInstance(c, domdiv_cards.Card)