mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
Made Gen6 exp share easier to understand (#3384)
This commit is contained in:
parent
25540a7fec
commit
9ed7fe1c94
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user