You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Identify remaining battle AI labels
This commit is contained in:
@@ -28,6 +28,9 @@ EFFECTIVE EQU 10
|
|||||||
NOT_VERY_EFFECTIVE EQU 05
|
NOT_VERY_EFFECTIVE EQU 05
|
||||||
NO_EFFECT EQU 00
|
NO_EFFECT EQU 00
|
||||||
|
|
||||||
|
; enemy AI behavior
|
||||||
|
BASE_AI_SWITCH_SCORE EQU 10
|
||||||
|
|
||||||
; wPlayerStatLevels and wEnemyStatLevels indexes (see wram.asm)
|
; wPlayerStatLevels and wEnemyStatLevels indexes (see wram.asm)
|
||||||
; GetStatName arguments (see data/battle/stat_names.asm)
|
; GetStatName arguments (see data/battle/stat_names.asm)
|
||||||
const_def
|
const_def
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ CheckPlayerMoveTypeMatchups:
|
|||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
push bc
|
push bc
|
||||||
ld a, 10
|
ld a, BASE_AI_SWITCH_SCORE
|
||||||
ld [wEnemyAISwitchScore], a
|
ld [wEnemyAISwitchScore], a
|
||||||
ld hl, wPlayerUsedMoves
|
ld hl, wPlayerUsedMoves
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@@ -37,7 +37,7 @@ CheckPlayerMoveTypeMatchups:
|
|||||||
cp EFFECTIVE ; 1.0
|
cp EFFECTIVE ; 1.0
|
||||||
jr nc, .neutral
|
jr nc, .neutral
|
||||||
|
|
||||||
.not_very_effective
|
; not very effective
|
||||||
ld a, e
|
ld a, e
|
||||||
cp 1 ; 0.1
|
cp 1 ; 0.1
|
||||||
jr nc, .next
|
jr nc, .next
|
||||||
|
|||||||
Reference in New Issue
Block a user