diff options
author | GriffinR <griffin.richards@comcast.net> | 2019-09-08 11:53:48 -0400 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-09-16 19:21:23 -0500 |
commit | 85d97542cdb269278aad3cc3735c29845f9d8738 (patch) | |
tree | 73ed7b2dd004aff52c7f6816ac5e7bb2652c9a7f /include/battle.h | |
parent | 258784f263d7834696db552a1b47cf6bd1dfd6b4 (diff) |
Use MAX_MON_MOVES constants
Diffstat (limited to 'include/battle.h')
-rw-r--r-- | include/battle.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/battle.h b/include/battle.h index 0f4087c90..32eabc6de 100644 --- a/include/battle.h +++ b/include/battle.h @@ -37,7 +37,6 @@ #define B_ACTION_NONE 0xFF #define MAX_TRAINER_ITEMS 4 -#define MAX_MON_MOVES 4 // array entries for battle communication #define MULTIUSE_STATE 0x0 @@ -180,19 +179,19 @@ struct AI_ThinkingStruct u8 aiState; u8 movesetIndex; u16 moveConsidered; - s8 score[4]; + s8 score[MAX_MON_MOVES]; u32 funcResult; u32 aiFlags; u8 aiAction; u8 aiLogicId; u8 filler12[6]; - u8 simulatedRNG[4]; + u8 simulatedRNG[MAX_MON_MOVES]; }; struct UsedMoves { - u16 moves[MAX_BATTLERS_COUNT]; - u16 unknown[MAX_BATTLERS_COUNT]; + u16 moves[MAX_MON_MOVES]; + u16 unknown[MAX_MON_MOVES]; }; struct BattleHistory |