2017-12-26 22:29:15 -08:00
|
|
|
; TrainerClassAttributes struct members (see data/trainers/attributes.asm)
|
2017-12-26 19:25:11 -08:00
|
|
|
const_def
|
|
|
|
const TRNATTR_ITEM1 ; 0
|
|
|
|
const TRNATTR_ITEM2 ; 1
|
|
|
|
const TRNATTR_BASEMONEY ; 2
|
|
|
|
const TRNATTR_AI_MOVE_WEIGHTS ; 3
|
2020-07-08 13:20:15 -07:00
|
|
|
const_skip ; high TRNATTR_AI_MOVE_WEIGHTS byte
|
2017-12-26 19:25:11 -08:00
|
|
|
const TRNATTR_AI_ITEM_SWITCH ; 5
|
2020-07-08 13:20:15 -07:00
|
|
|
const_skip ; high TRNATTR_AI_ITEM_SWITCH byte
|
2017-12-26 19:25:11 -08:00
|
|
|
NUM_TRAINER_ATTRIBUTES EQU const_value
|
|
|
|
|
|
|
|
; TRNATTR_AI_MOVE_WEIGHTS bit flags (wEnemyTrainerAIFlags)
|
2018-01-25 17:34:33 -08:00
|
|
|
; AIScoringPointers indexes (see engine/battle/ai/move.asm)
|
2017-12-26 19:25:11 -08:00
|
|
|
const_def
|
|
|
|
shift_const AI_BASIC
|
|
|
|
shift_const AI_SETUP
|
|
|
|
shift_const AI_TYPES
|
|
|
|
shift_const AI_OFFENSIVE
|
|
|
|
shift_const AI_SMART
|
|
|
|
shift_const AI_OPPORTUNIST
|
|
|
|
shift_const AI_AGGRESSIVE
|
|
|
|
shift_const AI_CAUTIOUS
|
|
|
|
shift_const AI_STATUS
|
|
|
|
shift_const AI_RISKY
|
2020-07-08 13:20:15 -07:00
|
|
|
NO_AI EQU 0
|
2017-12-26 19:25:11 -08:00
|
|
|
|
|
|
|
; TRNATTR_AI_ITEM_SWITCH bit flags
|
2020-07-08 13:20:15 -07:00
|
|
|
const_def
|
|
|
|
const SWITCH_OFTEN_F ; 0
|
|
|
|
const SWITCH_RARELY_F ; 1
|
|
|
|
const SWITCH_SOMETIMES_F ; 2
|
|
|
|
const_skip ; 3
|
|
|
|
const ALWAYS_USE_F ; 4
|
|
|
|
const UNKNOWN_USE_F ; 5
|
|
|
|
const CONTEXT_USE_F ; 6
|
2017-12-26 19:25:11 -08:00
|
|
|
|
|
|
|
SWITCH_OFTEN EQU 1 << SWITCH_OFTEN_F
|
2020-07-08 13:20:15 -07:00
|
|
|
SWITCH_RARELY EQU 1 << SWITCH_RARELY_F
|
|
|
|
SWITCH_SOMETIMES EQU 1 << SWITCH_SOMETIMES_F
|
|
|
|
ALWAYS_USE EQU 1 << ALWAYS_USE_F
|
|
|
|
UNKNOWN_USE EQU 1 << UNKNOWN_USE_F
|
|
|
|
CONTEXT_USE EQU 1 << CONTEXT_USE_F
|
2017-12-26 19:25:11 -08:00
|
|
|
|
2017-12-26 22:29:15 -08:00
|
|
|
; TrainerTypes indexes (see engine/battle/read_trainer_party.asm)
|
2017-12-26 19:25:11 -08:00
|
|
|
const_def
|
|
|
|
const TRAINERTYPE_NORMAL
|
|
|
|
const TRAINERTYPE_MOVES
|
|
|
|
const TRAINERTYPE_ITEM
|
|
|
|
const TRAINERTYPE_ITEM_MOVES
|