2018-02-08 00:35:13 +01:00
|
|
|
#ifndef GUARD_CONSTANTS_BATTLE_AI_H
|
|
|
|
#define GUARD_CONSTANTS_BATTLE_AI_H
|
2017-12-30 16:04:31 +01:00
|
|
|
|
2018-02-07 22:53:40 +01:00
|
|
|
// battlers
|
2017-12-30 16:04:31 +01:00
|
|
|
#define AI_TARGET 0
|
|
|
|
#define AI_USER 1
|
|
|
|
#define AI_TARGET_PARTNER 2
|
|
|
|
#define AI_USER_PARTNER 3
|
|
|
|
|
|
|
|
// get_type command
|
|
|
|
#define AI_TYPE1_TARGET 0
|
|
|
|
#define AI_TYPE1_USER 1
|
|
|
|
#define AI_TYPE2_TARGET 2
|
|
|
|
#define AI_TYPE2_USER 3
|
|
|
|
#define AI_TYPE_MOVE 4
|
|
|
|
|
|
|
|
// type effectiveness
|
|
|
|
#define AI_EFFECTIVENESS_x4 160
|
|
|
|
#define AI_EFFECTIVENESS_x2 80
|
|
|
|
#define AI_EFFECTIVENESS_x1 40
|
|
|
|
#define AI_EFFECTIVENESS_x0_5 20
|
|
|
|
#define AI_EFFECTIVENESS_x0_25 10
|
|
|
|
#define AI_EFFECTIVENESS_x0 0
|
|
|
|
|
2018-02-07 22:53:40 +01:00
|
|
|
// ai weather
|
2019-05-20 12:03:00 +02:00
|
|
|
#define AI_WEATHER_NONE 0
|
|
|
|
#define AI_WEATHER_SUN 1
|
|
|
|
#define AI_WEATHER_RAIN 2
|
|
|
|
#define AI_WEATHER_SANDSTORM 3
|
|
|
|
#define AI_WEATHER_HAIL 4
|
2017-12-30 16:04:31 +01:00
|
|
|
|
|
|
|
// get_how_powerful_move_is
|
|
|
|
#define MOVE_POWER_DISCOURAGED 0
|
2019-08-27 18:29:34 +02:00
|
|
|
#define MOVE_POWER_BEST 1
|
|
|
|
#define MOVE_POWER_GOOD 2 // Similar dmg range with best.
|
|
|
|
#define MOVE_POWER_WEAK 3 // Significantly lower than best and good.
|
2017-12-30 16:04:31 +01:00
|
|
|
|
|
|
|
// script's table id to bit
|
|
|
|
#define AI_SCRIPT_CHECK_BAD_MOVE (1 << 0)
|
2018-09-01 19:05:06 +02:00
|
|
|
#define AI_SCRIPT_TRY_TO_FAINT (1 << 1)
|
|
|
|
#define AI_SCRIPT_CHECK_VIABILITY (1 << 2)
|
2017-12-30 16:04:31 +01:00
|
|
|
#define AI_SCRIPT_SETUP_FIRST_TURN (1 << 3)
|
|
|
|
#define AI_SCRIPT_RISKY (1 << 4)
|
|
|
|
#define AI_SCRIPT_PREFER_STRONGEST_MOVE (1 << 5)
|
|
|
|
#define AI_SCRIPT_PREFER_BATON_PASS (1 << 6)
|
|
|
|
#define AI_SCRIPT_DOUBLE_BATTLE (1 << 7)
|
|
|
|
#define AI_SCRIPT_HP_AWARE (1 << 8)
|
|
|
|
#define AI_SCRIPT_UNKNOWN (1 << 9)
|
|
|
|
// 10 - 28 are not used
|
|
|
|
#define AI_SCRIPT_ROAMING (1 << 29)
|
|
|
|
#define AI_SCRIPT_SAFARI (1 << 30)
|
|
|
|
#define AI_SCRIPT_FIRST_BATTLE (1 << 31)
|
|
|
|
|
2018-02-08 00:35:13 +01:00
|
|
|
#endif // GUARD_CONSTANTS_BATTLE_AI_H
|