feat: Add VariantLine type to card variant_detailed - #1925
Conversation
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.
|
I like the general idea of introducing At the moment, the Would it make sense to make line: [{
category: 'restricted',
distribution: ['prize-pack']
}]or line: [{
category: 'parallel',
distribution: ['deck-exclusive']
}]This would make This also keeps the categories relatively broad instead of requiring a new category for every specific distribution type. It would allow us to distinguish regular/main-line variants from specially distributed variants while still retaining the specific distribution information. I think this could also make it easier to support additional distribution types in the future without making the Would this be a reasonable direction for the |
|
So with the distribution it's some good data and we should have it but I think we can do better than a tag. I think this links into when we get sealed/physical. We would be able to directly link the variant to the exact prize-pack that is comes out from. I belive that would cover the distribution your after. Is there somthing I've missed about your solution? |
|
I can follow you on that. I agree that distribution shouldn't just be a simple tag. Linking the variant directly to the relevant sealed/physical product would actually be a much better and more complete solution. One thing I think this also raises is the existing The reason is that not every variant of a card comes from the same boosters/products. For example, with Eldegoss 16/203, the regular print, the Deck Exclusive print and the Prize Pack print have different sources. With boosters currently being defined on the card level, we can't distinguish which variant actually comes from which booster/product. So I think the current logic is actually incorrect for cards with multiple distribution variants: all variants effectively inherit the same boosters, even though some of them were never available in those boosters. |
|
I believe the boosters property was specific to but when we get to adding sealed it will be something we come back to revisit, the way i picture it now is that the I just threw this together so don't treat it as gospel |
|
This is going to be address in |
Changes
Adds
lineto 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