Allows for additional cards to be added to worlds.txt in quest mode. #6175
+562
−54,318
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By writing "Extra:cardname@set;cardname@set..." you can get extra cards not found in the previously given sets into worlds in quest mode. When there are no allowed sets or additional cards, the world shop and pool will behave as it did before (It'll give cards from all sets), and if there are no allowed sets but there are additional cards, all of the cards shown on the store and initial card pool will only be composed of the additional cards specified.
To accommodate for this, the constructors for GameFormat and GameFormatQuest have been changed together with its filters and the return value of getAllCards() and when checking if a set is allowed in the format, the result will depend on if the format has additional cards.
Colored booster pack generation accounts for additional cards when building its filters
Added random colored boosters as win rewards called "Chaos" plus the color.
The function for generating singles in the shop now uses the same system as the initial card pool for starting a quest because it's faster.