Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CardData.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
NOVIGRAD_SET = 12
IRON_JUDGEMENT_SET = 13
MERCHANTS_OF_OFIR_SET = 14
MASTER_MIRROR_SET = 15

CARD_SETS = {
TOKEN_SET: "NonOwnable",
Expand All @@ -78,6 +79,7 @@
NOVIGRAD_SET: "Novigrad",
IRON_JUDGEMENT_SET: "IronJudgement",
MERCHANTS_OF_OFIR_SET: "MerchantsOfOfir",
MASTER_MIRROR_SET: "MasterMirror",
}

# Gaunter's 'Higher than 5' and 'Lower than 5' are not actually cards.
Expand Down Expand Up @@ -174,7 +176,7 @@ def create_card_json(gwent_data_helper, patch, base_image_url):
variation['variationId'] = variation_id

variation['availability'] = CARD_SETS[availability]
collectible = availability in {BASE_SET, THRONEBREAKER_SET, UNMILLABLE_SET, CRIMSONCURSE_SET, NOVIGRAD_SET, IRON_JUDGEMENT_SET, MERCHANTS_OF_OFIR_SET}
collectible = availability in {BASE_SET, THRONEBREAKER_SET, UNMILLABLE_SET, CRIMSONCURSE_SET, NOVIGRAD_SET, IRON_JUDGEMENT_SET, MERCHANTS_OF_OFIR_SET, MASTER_MIRROR_SET}
variation['collectible'] = collectible

# If a card is collectible, we know it has been released.
Expand Down