mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Replace some hard-coded values with constants
This commit is contained in:
parent
725b86ebbe
commit
f99a715fae
18 changed files with 37 additions and 30 deletions
|
|
@ -82,7 +82,7 @@ BattleTransitions:
|
|||
|
||||
GetBattleTransitionID_WildOrTrainer:
|
||||
ld a, [wCurOpponent]
|
||||
cp 200
|
||||
cp OPP_ID_OFFSET
|
||||
jr nc, .trainer
|
||||
res 0, c
|
||||
ret
|
||||
|
|
|
|||
|
|
@ -6867,7 +6867,7 @@ InitBattleCommon:
|
|||
res 1, [hl]
|
||||
callab InitBattleVariables
|
||||
ld a, [wEnemyMonSpecies2]
|
||||
sub 200
|
||||
sub OPP_ID_OFFSET
|
||||
jp c, InitWildBattle
|
||||
ld [wTrainerClass], a
|
||||
call GetTrainerInformation
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ ReadTrainer:
|
|||
|
||||
; get trainer class number
|
||||
ld a, [wCurOpponent]
|
||||
sub 200
|
||||
sub OPP_ID_OFFSET
|
||||
ld b, a
|
||||
ld hl, TeamMoves
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue