mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Identify remaining battle AI labels
This commit is contained in:
parent
0e3857eac7
commit
650686476c
@ -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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user