Made Gen6 exp share easier to understand (#3384)

This commit is contained in:
Eduardo Quezada D'Ottone 2023-10-09 07:15:13 -03:00 committed by GitHub
parent 25540a7fec
commit 9ed7fe1c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@
#define I_REUSABLE_TMS FALSE // In Gen5-8, TMs are reusable. Setting this to TRUE will make all vanilla TMs reusable, though they can also be cherry-picked by setting their importance to 1.
// Exp. Share config
// To use this feature, replace the 0 with the flag ID you're assigning it to.
// Eg: Replace with FLAG_UNUSED_0x264 so you can use that flag to toggle the feature.
#define I_EXP_SHARE_FLAG 0 // If this flag is set, every Pokémon in the party will gain experience, regardless if they participated in the battle or not.
#define I_EXP_SHARE_ITEM GEN_5 // In Gen6+, the Exp. Share was changed from a held item to a Key item that toggles the effect described above.

View File

@ -11197,7 +11197,7 @@ bool32 IsAlly(u32 battlerAtk, u32 battlerDef)
bool32 IsGen6ExpShareEnabled(void)
{
#if I_EXP_SHARE_ITEM < GEN_6
#if I_EXP_SHARE_FLAG <= TEMP_FLAGS_END
return FALSE;
#else
return FlagGet(I_EXP_SHARE_FLAG);