From 724a720db3f235bcce57c3a80a823a4049eebfb9 Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 23 Feb 2020 22:15:53 -0800 Subject: [PATCH] Replace #282 (--exclude-projects) (#297) * transfer #282 * Travis build: 1104 --- card_db_src/de/cards_de.json | 5 +++++ card_db_src/de/types_de.json | 1 + card_db_src/en_us/cards_en_us.json | 9 +++++++-- card_db_src/en_us/types_en_us.json | 1 + card_db_src/types_db.json | 9 +++++++++ src/domdiv/card_db/cz/cards_cz.json | 9 +++++++-- src/domdiv/card_db/cz/types_cz.json | 3 ++- src/domdiv/card_db/de/cards_de.json | 5 +++++ src/domdiv/card_db/de/types_de.json | 1 + src/domdiv/card_db/en_us/cards_en_us.json | 9 +++++++-- src/domdiv/card_db/en_us/types_en_us.json | 1 + src/domdiv/card_db/fr/cards_fr.json | 9 +++++++-- src/domdiv/card_db/fr/types_fr.json | 3 ++- src/domdiv/card_db/it/cards_it.json | 9 +++++++-- src/domdiv/card_db/it/types_it.json | 3 ++- src/domdiv/card_db/nl_du/cards_nl_du.json | 9 +++++++-- src/domdiv/card_db/nl_du/types_nl_du.json | 3 ++- src/domdiv/card_db/types_db.json | 9 +++++++++ src/domdiv/card_db/xx/cards_xx.json | 9 +++++++-- src/domdiv/card_db/xx/types_xx.json | 3 ++- src/domdiv/main.py | 17 +++++++++++++++++ src/domdiv/tools/update_language.py | 2 +- 22 files changed, 109 insertions(+), 20 deletions(-) diff --git a/card_db_src/de/cards_de.json b/card_db_src/de/cards_de.json index 5c9f19a..3e23092 100644 --- a/card_db_src/de/cards_de.json +++ b/card_db_src/de/cards_de.json @@ -2665,6 +2665,11 @@ "extra": "Die Landmarken sind in der Übersicht alphabetisch sortiert. Einmal im Spiel, haben sie für alle Spieler gleichermaßen Gültigkeit. Sie können nicht gekauft werden. Einige Landmarken enthalten Anweisungen für die Spielvorbereitung (unterhalb der Trennlinie). Spielt ihr mit einer dieser Karten, beachtet dies in der Spielvorbereitung. Darfst du dir auf Grund einer Anweisung 1-Marker von einer Landmarkenkarte oder einem Vorratsstapel nehmen und dort sind zu diesem Zeitpunkt keine 1d-Marker vorhanden, erhältst du nichts. Sind die zu Spielbeginn platzierten 1-Marker aufgebraucht, werden keine neuen 1-Marker platziert.", "name": "Landmarken (Wahrzeichen)" }, + "projects": { + "description": "Projekte sind Fähigkeiten, die Spieler sich bis zum Spielende kaufen können. Es gibt insgesamt 20 Projekte. Zu Spielbeginn wird von den Spielern entschieden, mit welchen Projekten gespielt wird. Wir empfehlen, pro Spiel maximal 2 Projekte zu verwenden. Die Projekte werden neben dem Vorrat bereitgelegt, gehören aber nicht zum Vorrat. Außerdem erhält jeder Spieler zu Beginn 2 Holzsteine derselben Farbe und legt sie vor sich ab. Diese Holzsteine legt ihr im Spielverlauf jeweils auf die Projekte, die ihr gekauft habt.", + "extra": "", + "name": "Projekte" + }, "Ruined Market": { "description": "+1 Kauf", "extra": "", diff --git a/card_db_src/de/types_de.json b/card_db_src/de/types_de.json index 3f398b7..1ac090e 100644 --- a/card_db_src/de/types_de.json +++ b/card_db_src/de/types_de.json @@ -22,6 +22,7 @@ "Prize": "Preis", "Prizes": "Preise", "Project": "Projekt", + "Projects": "Projekte", "Reaction": "Reaktion", "Reserve": "Reserve", "Ruins": "Ruine", diff --git a/card_db_src/en_us/cards_en_us.json b/card_db_src/en_us/cards_en_us.json index 281ddcf..0e9753e 100644 --- a/card_db_src/en_us/cards_en_us.json +++ b/card_db_src/en_us/cards_en_us.json @@ -2655,8 +2655,8 @@ "name": "Events - Promos" }, "renaissance projects": { - "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.\n\nProjects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", - "extra": "", + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", "name": "Projects" }, "events": { @@ -2669,6 +2669,11 @@ "extra": "Landmarks are not Kingdom cards. It is recommended that no more than two Landmarks be used per game. Players may choose how to determine what Landmarks to play with. They may shuffle them with Events and deal out 2 cards from that pile every game; they may shuffle them into the Randomizer deck and use 0-2 depending on how many come up before finding 10 Kingdom cards; or they may use any method they like.", "name": "Landmarks - All" }, + "projects": { + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", + "name": "Projects - All" + }, "Abandoned Mine": { "description": "+1 Coin", "extra": "If any Kingdom card has the type Looter (e.g. Cultist, Death Cart, and Marauder), add the all the Ruins cards (Abandoned Mine, Ruined Library, Ruined Market, Ruined Village, Survivors), shuffle, then count 10 per player after the first: 10 for two players, 20 for three players, 30 for four players, and so on. Put the pile face down with the top card face up. Return any remaining Ruins cards to the box.Players can buy Ruins. Ruins cards are Actions; they may be played in the Action phase, and count as Actions for things that refer to Action cards, such as Procession. The Ruins pile, when used, is in the Supply, and if it is empty that counts towards the normal end condition.", diff --git a/card_db_src/en_us/types_en_us.json b/card_db_src/en_us/types_en_us.json index 626de33..2a31d6c 100644 --- a/card_db_src/en_us/types_en_us.json +++ b/card_db_src/en_us/types_en_us.json @@ -22,6 +22,7 @@ "Prize": "Prize", "Prizes": "Prizes", "Project": "Project", + "Projects": "Projects", "Reaction": "Reaction", "Reserve": "Reserve", "Ruins": "Ruins", diff --git a/card_db_src/types_db.json b/card_db_src/types_db.json index 69afc62..de27d78 100644 --- a/card_db_src/types_db.json +++ b/card_db_src/types_db.json @@ -426,6 +426,15 @@ "tabCostHeightOffset": -1, "tabTextHeightOffset": 0 }, + { + "card_type": [ + "Projects" + ], + "card_type_image": "project.png", + "defaultCardCount": 0, + "tabCostHeightOffset": -1, + "tabTextHeightOffset": 0 + }, { "card_type": [ "Reaction" diff --git a/src/domdiv/card_db/cz/cards_cz.json b/src/domdiv/card_db/cz/cards_cz.json index 72c6c77..3b1b486 100644 --- a/src/domdiv/card_db/cz/cards_cz.json +++ b/src/domdiv/card_db/cz/cards_cz.json @@ -2655,8 +2655,8 @@ "name": "Events - Promos" }, "renaissance projects": { - "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.\n\nProjects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", - "extra": "", + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", "name": "Projects" }, "events": { @@ -2668,5 +2668,10 @@ "description": "Landmarks are not Kingdom cards. Landmarks provide new ways for players to score. Players may choose how to determine what Landmarks to play with. Landmarks in use are visible to all from the start of the game. Many Landmarks only apply when scoring at the end of the game.", "extra": "Landmarks are not Kingdom cards. It is recommended that no more than two Landmarks be used per game. Players may choose how to determine what Landmarks to play with. They may shuffle them with Events and deal out 2 cards from that pile every game; they may shuffle them into the Randomizer deck and use 0-2 depending on how many come up before finding 10 Kingdom cards; or they may use any method they like.", "name": "Landmarks - All" + }, + "projects": { + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", + "name": "Projects - All" } } diff --git a/src/domdiv/card_db/cz/types_cz.json b/src/domdiv/card_db/cz/types_cz.json index 626de33..b770ab4 100644 --- a/src/domdiv/card_db/cz/types_cz.json +++ b/src/domdiv/card_db/cz/types_cz.json @@ -34,5 +34,6 @@ "Traveller": "Traveller", "Treasure": "Treasure", "Victory": "Victory", - "Zombie": "Zombie" + "Zombie": "Zombie", + "Projects": "Projects" } diff --git a/src/domdiv/card_db/de/cards_de.json b/src/domdiv/card_db/de/cards_de.json index d5eefc5..c80df05 100644 --- a/src/domdiv/card_db/de/cards_de.json +++ b/src/domdiv/card_db/de/cards_de.json @@ -2669,6 +2669,11 @@ "extra": "Die Landmarken sind in der Übersicht alphabetisch sortiert. Einmal im Spiel, haben sie für alle Spieler gleichermaßen Gültigkeit. Sie können nicht gekauft werden. Einige Landmarken enthalten Anweisungen für die Spielvorbereitung (unterhalb der Trennlinie). Spielt ihr mit einer dieser Karten, beachtet dies in der Spielvorbereitung. Darfst du dir auf Grund einer Anweisung 1-Marker von einer Landmarkenkarte oder einem Vorratsstapel nehmen und dort sind zu diesem Zeitpunkt keine 1d-Marker vorhanden, erhältst du nichts. Sind die zu Spielbeginn platzierten 1-Marker aufgebraucht, werden keine neuen 1-Marker platziert.", "name": "Landmarken (Wahrzeichen)" }, + "projects": { + "description": "Projekte sind Fähigkeiten, die Spieler sich bis zum Spielende kaufen können. Es gibt insgesamt 20 Projekte. Zu Spielbeginn wird von den Spielern entschieden, mit welchen Projekten gespielt wird. Wir empfehlen, pro Spiel maximal 2 Projekte zu verwenden. Die Projekte werden neben dem Vorrat bereitgelegt, gehören aber nicht zum Vorrat. Außerdem erhält jeder Spieler zu Beginn 2 Holzsteine derselben Farbe und legt sie vor sich ab. Diese Holzsteine legt ihr im Spielverlauf jeweils auf die Projekte, die ihr gekauft habt.", + "extra": "", + "name": "Projekte" + }, "Abandoned Mine": { "description": "+1 Coin", "extra": "", diff --git a/src/domdiv/card_db/de/types_de.json b/src/domdiv/card_db/de/types_de.json index 3f398b7..1ac090e 100644 --- a/src/domdiv/card_db/de/types_de.json +++ b/src/domdiv/card_db/de/types_de.json @@ -22,6 +22,7 @@ "Prize": "Preis", "Prizes": "Preise", "Project": "Projekt", + "Projects": "Projekte", "Reaction": "Reaktion", "Reserve": "Reserve", "Ruins": "Ruine", diff --git a/src/domdiv/card_db/en_us/cards_en_us.json b/src/domdiv/card_db/en_us/cards_en_us.json index 6355e2e..ea7bb92 100644 --- a/src/domdiv/card_db/en_us/cards_en_us.json +++ b/src/domdiv/card_db/en_us/cards_en_us.json @@ -2655,8 +2655,8 @@ "name": "Events - Promos" }, "renaissance projects": { - "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.\n\nProjects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", - "extra": "", + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", "name": "Projects" }, "events": { @@ -2669,6 +2669,11 @@ "extra": "Landmarks are not Kingdom cards. It is recommended that no more than two Landmarks be used per game. Players may choose how to determine what Landmarks to play with. They may shuffle them with Events and deal out 2 cards from that pile every game; they may shuffle them into the Randomizer deck and use 0-2 depending on how many come up before finding 10 Kingdom cards; or they may use any method they like.", "name": "Landmarks - All" }, + "projects": { + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", + "name": "Projects - All" + }, "Abandoned Mine": { "description": "+1 Coin", "extra": "If any Kingdom card has the type Looter (e.g. Cultist, Death Cart, and Marauder), add the all the Ruins cards (Abandoned Mine, Ruined Library, Ruined Market, Ruined Village, Survivors), shuffle, then count 10 per player after the first: 10 for two players, 20 for three players, 30 for four players, and so on. Put the pile face down with the top card face up. Return any remaining Ruins cards to the box.Players can buy Ruins. Ruins cards are Actions; they may be played in the Action phase, and count as Actions for things that refer to Action cards, such as Procession. The Ruins pile, when used, is in the Supply, and if it is empty that counts towards the normal end condition.", diff --git a/src/domdiv/card_db/en_us/types_en_us.json b/src/domdiv/card_db/en_us/types_en_us.json index 626de33..2a31d6c 100644 --- a/src/domdiv/card_db/en_us/types_en_us.json +++ b/src/domdiv/card_db/en_us/types_en_us.json @@ -22,6 +22,7 @@ "Prize": "Prize", "Prizes": "Prizes", "Project": "Project", + "Projects": "Projects", "Reaction": "Reaction", "Reserve": "Reserve", "Ruins": "Ruins", diff --git a/src/domdiv/card_db/fr/cards_fr.json b/src/domdiv/card_db/fr/cards_fr.json index 146dc8a..65f39c0 100644 --- a/src/domdiv/card_db/fr/cards_fr.json +++ b/src/domdiv/card_db/fr/cards_fr.json @@ -2655,8 +2655,8 @@ "name": "Events - Promos" }, "renaissance projects": { - "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.\n\nProjects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", - "extra": "", + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", "name": "Projects" }, "events": { @@ -2668,5 +2668,10 @@ "description": "Landmarks are not Kingdom cards. Landmarks provide new ways for players to score. Players may choose how to determine what Landmarks to play with. Landmarks in use are visible to all from the start of the game. Many Landmarks only apply when scoring at the end of the game.", "extra": "Landmarks are not Kingdom cards. It is recommended that no more than two Landmarks be used per game. Players may choose how to determine what Landmarks to play with. They may shuffle them with Events and deal out 2 cards from that pile every game; they may shuffle them into the Randomizer deck and use 0-2 depending on how many come up before finding 10 Kingdom cards; or they may use any method they like.", "name": "Landmarks - All" + }, + "projects": { + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", + "name": "Projects - All" } } diff --git a/src/domdiv/card_db/fr/types_fr.json b/src/domdiv/card_db/fr/types_fr.json index 03186e4..fca12f9 100644 --- a/src/domdiv/card_db/fr/types_fr.json +++ b/src/domdiv/card_db/fr/types_fr.json @@ -34,5 +34,6 @@ "Traveller": "Itinérant", "Treasure": "Trésor", "Victory": "Victoire", - "Zombie": "Zombie" + "Zombie": "Zombie", + "Projects": "Projects" } diff --git a/src/domdiv/card_db/it/cards_it.json b/src/domdiv/card_db/it/cards_it.json index 574b73a..40b2140 100644 --- a/src/domdiv/card_db/it/cards_it.json +++ b/src/domdiv/card_db/it/cards_it.json @@ -2655,8 +2655,8 @@ "name": "Events - Promos" }, "renaissance projects": { - "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.\n\nProjects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", - "extra": "", + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", "name": "Projects" }, "events": { @@ -2668,5 +2668,10 @@ "description": "Landmarks are not Kingdom cards. Landmarks provide new ways for players to score. Players may choose how to determine what Landmarks to play with. Landmarks in use are visible to all from the start of the game. Many Landmarks only apply when scoring at the end of the game.", "extra": "Landmarks are not Kingdom cards. It is recommended that no more than two Landmarks be used per game. Players may choose how to determine what Landmarks to play with. They may shuffle them with Events and deal out 2 cards from that pile every game; they may shuffle them into the Randomizer deck and use 0-2 depending on how many come up before finding 10 Kingdom cards; or they may use any method they like.", "name": "Landmarks - All" + }, + "projects": { + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", + "name": "Projects - All" } } diff --git a/src/domdiv/card_db/it/types_it.json b/src/domdiv/card_db/it/types_it.json index 626de33..b770ab4 100644 --- a/src/domdiv/card_db/it/types_it.json +++ b/src/domdiv/card_db/it/types_it.json @@ -34,5 +34,6 @@ "Traveller": "Traveller", "Treasure": "Treasure", "Victory": "Victory", - "Zombie": "Zombie" + "Zombie": "Zombie", + "Projects": "Projects" } diff --git a/src/domdiv/card_db/nl_du/cards_nl_du.json b/src/domdiv/card_db/nl_du/cards_nl_du.json index 4347a87..3480877 100644 --- a/src/domdiv/card_db/nl_du/cards_nl_du.json +++ b/src/domdiv/card_db/nl_du/cards_nl_du.json @@ -2655,8 +2655,8 @@ "name": "Events - Promos" }, "renaissance projects": { - "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.\n\nProjects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", - "extra": "", + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", "name": "Projects" }, "events": { @@ -2669,6 +2669,11 @@ "extra": "Bezienswaardigheden zijn geen Koningkrijkskaarten. Bezienswaardigheden bieden nieuwe manieren om punten te scoren. De spelers kiezen zelf hoe ze bepalen met welke bezienswaardigheden ze spelen. Ze kunnen de bezienswaardigheden door de gebeurtenissen schudden en er vóór een spel 2 trekken. Ze kunnen er ook voor kiezen om de bezienswaardigheden (en gebeurtenissen) door de locatiekaarten te schudden en er dan 0-2 te gebruiken, afhankelijk van het aantal dat verschijnt voordat er 10 koninkrijkkaarten zijn getrokken. Of ze gberuiken een andere methode. De te gebruiken bezienswaardigheden zijn vanaf de start van het spel voor alle spelers zichtbaar. We raden aan om er niet meer dan 2 per spel te gebruiken.Veel bezienswaardigheden hebben uitsluitend bij de puntentelling aan het einde van het spel een functie. Op basis van de aanwijzingen op de bezienswaardigheid krijgen de spelers dan bonus- of minpunten.Sommige bezienswardigheden starten met 6 -fiches per speler. Dus, 12 -fiches in het spel met 2 spelers tot 36 -fiches bij 6 spelers. Deze bezienswaardigheden bieden een manier om aan -fiches te komen. Liggen er geen -fiches meer op een bezienswaardigheid, dan kunnen de spelers deze daar niet meer verdienen.", "name": "Bezienswaardigheden" }, + "projects": { + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", + "name": "Projects - All" + }, "Abandoned Mine": { "description": "+1 Coin", "extra": "Bij het spelen van deze kaart krijg je alleen +1 Coin. Dit is een Ruïne; zie Aanvullende spelregels en Voorbereiding.", diff --git a/src/domdiv/card_db/nl_du/types_nl_du.json b/src/domdiv/card_db/nl_du/types_nl_du.json index 8f1dc04..dc96f22 100644 --- a/src/domdiv/card_db/nl_du/types_nl_du.json +++ b/src/domdiv/card_db/nl_du/types_nl_du.json @@ -34,5 +34,6 @@ "Traveller": "Traveller", "Treasure": "Geld", "Victory": "Overwinning", - "Zombie": "Zombie" + "Zombie": "Zombie", + "Projects": "Projects" } diff --git a/src/domdiv/card_db/types_db.json b/src/domdiv/card_db/types_db.json index 69afc62..de27d78 100644 --- a/src/domdiv/card_db/types_db.json +++ b/src/domdiv/card_db/types_db.json @@ -426,6 +426,15 @@ "tabCostHeightOffset": -1, "tabTextHeightOffset": 0 }, + { + "card_type": [ + "Projects" + ], + "card_type_image": "project.png", + "defaultCardCount": 0, + "tabCostHeightOffset": -1, + "tabTextHeightOffset": 0 + }, { "card_type": [ "Reaction" diff --git a/src/domdiv/card_db/xx/cards_xx.json b/src/domdiv/card_db/xx/cards_xx.json index 2ceb04a..44cbd00 100644 --- a/src/domdiv/card_db/xx/cards_xx.json +++ b/src/domdiv/card_db/xx/cards_xx.json @@ -2655,8 +2655,8 @@ "name": "Events - Promos" }, "renaissance projects": { - "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.\n\nProjects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", - "extra": "", + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", "name": "Projects" }, "events": { @@ -2668,5 +2668,10 @@ "description": "Landmarks are not Kingdom cards. Landmarks provide new ways for players to score. Players may choose how to determine what Landmarks to play with. Landmarks in use are visible to all from the start of the game. Many Landmarks only apply when scoring at the end of the game.", "extra": "Landmarks are not Kingdom cards. It is recommended that no more than two Landmarks be used per game. Players may choose how to determine what Landmarks to play with. They may shuffle them with Events and deal out 2 cards from that pile every game; they may shuffle them into the Randomizer deck and use 0-2 depending on how many come up before finding 10 Kingdom cards; or they may use any method they like.", "name": "Landmarks - All" + }, + "projects": { + "description": "Projects are special, permanent, on-buy effects not attached to cards. Players can buy Projects during their Buy phase whenever they might instead buy a card or Event. When a player buys a Project, they put a wooden cube of their color on it, to track which Projects' effects they receive. Each player has only two cubes to put on Projects.", + "extra": "Projects are not Kingdom cards; including one or more Projects in a game does not count toward the 10 Kingdom card piles the Supply includes. In fact, Projects are not considered \"cards\" at all; any text referring to a \"card\" does not apply to Projects.\n\nAny number of Projects may be used in a game, though it is recommended to not use more than two total Events, Landmarks, and Projects.", + "name": "Projects - All" } } diff --git a/src/domdiv/card_db/xx/types_xx.json b/src/domdiv/card_db/xx/types_xx.json index 626de33..b770ab4 100644 --- a/src/domdiv/card_db/xx/types_xx.json +++ b/src/domdiv/card_db/xx/types_xx.json @@ -34,5 +34,6 @@ "Traveller": "Traveller", "Treasure": "Treasure", "Victory": "Victory", - "Zombie": "Zombie" + "Zombie": "Zombie", + "Projects": "Projects" } diff --git a/src/domdiv/main.py b/src/domdiv/main.py index d3c960d..7b3b735 100644 --- a/src/domdiv/main.py +++ b/src/domdiv/main.py @@ -485,6 +485,11 @@ def parse_opts(cmdline_args=None): action="store_true", help="Group all 'Landmark' cards across all expansions into one divider.", ) + group_select.add_argument( + "--exclude-projects", + action="store_true", + help="Group all 'Project' cards across all expansions into one divider.", + ) group_select.add_argument( "--only-type-any", "--only-type", @@ -1403,6 +1408,18 @@ def filter_sort_cards(cards, options): if options.expansions: options.expansions.append("extras") + # Combine all Projects across all expansions + if options.exclude_projects: + cards = combine_cards( + cards, + old_card_type="Project", + new_type="Projects", + new_card_tag="projects", + new_cardset_tag="extras", + ) + if options.expansions: + options.expansions.append("extras") + # Take care of any blank cards if options.include_blanks > 0: if options.expansions: diff --git a/src/domdiv/tools/update_language.py b/src/domdiv/tools/update_language.py index ec7f312..1d7ae58 100644 --- a/src/domdiv/tools/update_language.py +++ b/src/domdiv/tools/update_language.py @@ -122,7 +122,7 @@ def main(card_db_dir, output_dir): sorted_card_data = load_card_data(card_db_dir) groups = set(card["group_tag"] for card in sorted_card_data if "group_tag" in card) - super_groups = set(["events", "landmarks"]) + super_groups = set(["events", "landmarks", "projects"]) write_data(sorted_card_data, os.path.join(output_dir, "cards_db.json"))