Skip to content

Allow for a cubelist with duplicate protection, but still using the set numbers of cards. #581

Description

@Susucre

Hello!

It is possible currently to entirely disable duplicate protection in booster generation.
However at the xdhs we have a very particular custom set where we would like some cards to appear duplicated in boosters, but other still only appear at most once.

For instance with something similar to:

[Settings]
{
  "name": "test without protection",
  "showSlots": true,
  "withReplacement": true,
  "duplicateProtection": false
}
[Common(2)]
1 Grizzly Bears (10e) 268
1 Grizzly Bears (10e) 268
1 Lumengrid Warden (10e) 89

We would like for the possible boosters to be [Bears, Bears] (~33% chance), or [Bears, Warden] (~67% chance). However as set currently each slot in the booster is entirely independent, so it is possible to end up with [Warden, Warden]:
image

With duplicateProtection: true instead, there is only one kind of booster, [Bears, Warden], which is not what we'd want in that specific use case.

Am I right thinking what we want is not possible with existing settings? (we could set custom cards, or probability layouts, but both are heavy workarounds)

If you're alright with adding yet another boolean settings for that specific usecase, I can do the ground work and submit a PR. (not sure how to name it though)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions