2017-10-10 21:45:07 +02:00
|
|
|
#ifndef GUARD_BATTLE_AI_SWITCH_ITEMS_H
|
|
|
|
#define GUARD_BATTLE_AI_SWITCH_ITEMS_H
|
|
|
|
|
2017-10-11 12:49:42 +02:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
AI_ITEM_FULL_RESTORE = 1,
|
|
|
|
AI_ITEM_HEAL_HP,
|
|
|
|
AI_ITEM_CURE_CONDITION,
|
|
|
|
AI_ITEM_X_STAT,
|
2021-04-03 21:18:17 +02:00
|
|
|
AI_ITEM_GUARD_SPEC,
|
2017-10-11 12:49:42 +02:00
|
|
|
AI_ITEM_NOT_RECOGNIZABLE
|
|
|
|
};
|
|
|
|
|
2021-04-02 08:27:12 +02:00
|
|
|
enum {
|
|
|
|
AI_HEAL_CONFUSION,
|
|
|
|
AI_HEAL_PARALYSIS,
|
|
|
|
AI_HEAL_FREEZE,
|
|
|
|
AI_HEAL_BURN,
|
|
|
|
AI_HEAL_POISON,
|
|
|
|
AI_HEAL_SLEEP,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
AI_X_ATTACK,
|
|
|
|
AI_X_DEFEND,
|
|
|
|
AI_X_SPEED,
|
|
|
|
AI_X_SPATK,
|
|
|
|
AI_X_SPDEF, // Unused
|
|
|
|
AI_X_ACCURACY,
|
|
|
|
AI_X_EVASION, // Unused
|
|
|
|
AI_DIRE_HIT,
|
|
|
|
};
|
|
|
|
|
2019-01-27 20:54:34 +01:00
|
|
|
void GetAIPartyIndexes(u32 battlerId, s32 *firstId, s32 *lastId);
|
2021-11-28 19:12:56 +01:00
|
|
|
void AI_TrySwitchOrUseItem(void);
|
2017-10-10 21:45:07 +02:00
|
|
|
u8 GetMostSuitableMonToSwitchInto(void);
|
2020-12-20 05:58:23 +01:00
|
|
|
bool32 ShouldSwitch(void);
|
2017-10-10 21:45:07 +02:00
|
|
|
|
|
|
|
#endif // GUARD_BATTLE_AI_SWITCH_ITEMS_H
|