-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement Customizable NPC Trainer Parties #2733
Implement Customizable NPC Trainer Parties #2733
Conversation
0ff7930
to
5fc5659
Compare
added a .nickname = COMPOUND_STRING("asdf") |
f7e4df7
to
e75ea66
Compare
rebased to upcoming, squashed and addressed some changes. Could still need some tests. |
Stats need to be recalculated when using evs/ivs, needs a |
The macro for mon evs doesn't compile, please change it to |
addressed the reviews and added a |
8f106be
to
ed76749
Compare
ed76749
to
ab5ea10
Compare
added some tests, fixed some issues found by the tests. Ready for review :) |
ab5ea10
to
61c0460
Compare
fix nature related bug, fix hash generation, add tests
61c0460
to
aea5d79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a perfect opportunity to remove the TrainerMonPtr
union, since its completely unnecessary and I've seen many posts expressing confusion about trying to assign items, etc, without the proper pointer definition or party flag. It would be much simpler from a user and developer to have just struct TrainerMonCustomized *party
, and in CreateNPCTrainerParty, only assign fields if the field value is non-zero rather than checking e.g. F_TRAINER_PARTY_HELD_ITEM
I kinda agree, the reason I left it in is because the new structure is considerably larger than the old ones. So it would increase the ROM size. I have not made accurate calculations, but its not neglectable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per discord discussion, trainer party union will be removed at a later date
Description
Implements fully customizable trainer parties for enemy trainers according to the following structure:
Discord contact info
Karathan#1337