Skip to content

feat: Add VariantLine type to card variant_detailed - #1925

Open
thomas-bassett wants to merge 1 commit into
tcgdex:masterfrom
thomas-bassett:variant_lines
Open

feat: Add VariantLine type to card variant_detailed#1925
thomas-bassett wants to merge 1 commit into
tcgdex:masterfrom
thomas-bassett:variant_lines

Conversation

@thomas-bassett

Copy link
Copy Markdown
Contributor

Changes

Adds line to variant detailed. this line is used to separate variants based on how they are obtained. raised out of the issue of trying to distinguish between a holo released in booster packs and a non-holo variant released in build and battle kits.

This defines four line types:
Main: found in booster packs
Parallel: found in specific products bbk, pre constructed
Restricted: given out at a specific event or promotion
Exclusive: given out at a specific event for either working, topcut, winners. or for performing a specific job: professor program.

variants currently default to main line at compile time. so in theory only need to adjust the line for the other 3

none of these lines are locked in a new reasons can be added to expand on them. if a card is available in two of the lines always use the more available line. i.e. precons will likely have main line cards in them. those cards should be treated as main line and the non-holo holos should be treated as parallel as they are not available in booster packs

Introduces a new `VariantLine` type ('main' | 'parallel' | 'restricted' | 'exclusive') to categorize variant availability (booster packs, precon products, event-restricted, or event-exclusive). Updates interfaces, API definitions, translations (de/es/fr/it/pt), and compiler utilities to support the new field, defaulting to 'main' when unspecified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant