Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows for additional cards to be added to worlds.txt in quest mode. #6175

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

repeperilka
Copy link

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.

Copy link
Author

@repeperilka repeperilka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what I did here.
Hope I didn't mess anything up.

@repeperilka
Copy link
Author

Just found out the changes I made break the spell shop for the Random Commander world

repeperilka and others added 3 commits October 17, 2024 23:27
…reated a world folder with worlds divided by planes.
…references file on their world directory. If such file doesn't exist, it'll use the default preferences.
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.

2 participants