-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Trainer Party Pools #5731
base: upcoming
Are you sure you want to change the base?
Trainer Party Pools #5731
Conversation
…em, and some pool picking fixes
Preliminarily ready for review.
Replacement trainer for Tiana for testing.
|
(Almost) ready for review, just missing pool verification. |
Ready for review. |
Split all the pool functions into its own file. |
Conflicts resolved, #5337 merged. |
Description
Allows trainers to generate their party from a curated pool of pokemon defined in the trainer party.
This feature changes nothing about
trainers.party
ortrainers.h
if it's not used.To use this feature, simply define a
Party Size
that lower than the amount of defined pokemon for the trainer intrainers.party
or.partySize
and.poolSize
intraners.h
wherepoolSize
is larger thanpartySize
and matches the number of defined pokemon.Optionally
Pool Rules
can be defined for the trainer to change which rules should be applied to the trainer.Mons in the pool can have tags that change how the party is picked from the pool.
If a mon has the tag
Lead
the first mon in the party will be picked from all the pool members with this tag.If a mon has the tag
Ace
the last member of the party will be picked from all the pool members with this tag.Other tags can be marked as
POOL_TAG_REQUIRED
instruct PoolRules poolRules
which will force that tag to be included as early as possible. (Not completely implemented right now)Rules for the pools also include forcing unique species or NatDex numbers and unique items.
Items can also be excluded from the item uniqueness with a list.
Party generation is limited to a maximum size of 255 since index 255 is used for "No mon chosen yet".
Images
Things to note in the release changelog:
docs/tutorials/how_to_trainer_party_pool.md
Discord contact info
hedara