Identify remaining battle AI labels

This commit is contained in:
Rangi 2020-10-21 21:34:18 -04:00
parent 0e3857eac7
commit 650686476c
3 changed files with 197 additions and 172 deletions

View File

@ -28,6 +28,9 @@ EFFECTIVE EQU 10
NOT_VERY_EFFECTIVE EQU 05
NO_EFFECT EQU 00
; enemy AI behavior
BASE_AI_SWITCH_SCORE EQU 10
; wPlayerStatLevels and wEnemyStatLevels indexes (see wram.asm)
; GetStatName arguments (see data/battle/stat_names.asm)
const_def

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@ CheckPlayerMoveTypeMatchups:
push hl
push de
push bc
ld a, 10
ld a, BASE_AI_SWITCH_SCORE
ld [wEnemyAISwitchScore], a
ld hl, wPlayerUsedMoves
ld a, [hl]
@ -37,7 +37,7 @@ CheckPlayerMoveTypeMatchups:
cp EFFECTIVE ; 1.0
jr nc, .neutral
.not_very_effective
; not very effective
ld a, e
cp 1 ; 0.1
jr nc, .next