Misc missing constant use
This commit is contained in:
@@ -13,16 +13,13 @@
|
||||
#include "constants/abilities.h"
|
||||
#include "constants/battle_ai.h"
|
||||
#include "constants/battle_move_effects.h"
|
||||
#include "constants/items.h"
|
||||
#include "constants/moves.h"
|
||||
|
||||
#define AI_ACTION_DONE 0x0001
|
||||
#define AI_ACTION_FLEE 0x0002
|
||||
#define AI_ACTION_WATCH 0x0004
|
||||
#define AI_ACTION_DO_NOT_ATTACK 0x0008
|
||||
#define AI_ACTION_UNK5 0x0010
|
||||
#define AI_ACTION_UNK6 0x0020
|
||||
#define AI_ACTION_UNK7 0x0040
|
||||
#define AI_ACTION_UNK8 0x0080
|
||||
#define AI_ACTION_DONE (1 << 0)
|
||||
#define AI_ACTION_FLEE (1 << 1)
|
||||
#define AI_ACTION_WATCH (1 << 2)
|
||||
#define AI_ACTION_DO_NOT_ATTACK (1 << 3)
|
||||
|
||||
#define AI_THINKING_STRUCT ((struct AI_ThinkingStruct *)(gBattleResources->ai))
|
||||
#define BATTLE_HISTORY ((struct BattleHistory *)(gBattleResources->battleHistory))
|
||||
@@ -283,7 +280,6 @@ static const u16 sIgnoredPowerfulMoveEffects[] =
|
||||
IGNORED_MOVES_END
|
||||
};
|
||||
|
||||
// code
|
||||
void BattleAI_HandleItemUseBeforeAISetup(u8 defaultScoreMoves)
|
||||
{
|
||||
s32 i;
|
||||
@@ -302,7 +298,7 @@ void BattleAI_HandleItemUseBeforeAISetup(u8 defaultScoreMoves)
|
||||
{
|
||||
for (i = 0; i < MAX_TRAINER_ITEMS; i++)
|
||||
{
|
||||
if (gTrainers[gTrainerBattleOpponent_A].items[i] != 0)
|
||||
if (gTrainers[gTrainerBattleOpponent_A].items[i] != ITEM_NONE)
|
||||
{
|
||||
BATTLE_HISTORY->trainerItems[BATTLE_HISTORY->itemsNo] = gTrainers[gTrainerBattleOpponent_A].items[i];
|
||||
BATTLE_HISTORY->itemsNo++;
|
||||
|
||||
Reference in New Issue
Block a user