mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
No more W_
This commit is contained in:
parent
1ee9fb408c
commit
38065a744d
190 changed files with 2202 additions and 2202 deletions
|
|
@ -81,7 +81,7 @@ BattleTransitions: ; 709d2 (1c:49d2)
|
|||
dw BattleTransition_Split ; %111
|
||||
|
||||
GetBattleTransitionID_WildOrTrainer: ; 709e2 (1c:49e2)
|
||||
ld a, [W_CUROPPONENT]
|
||||
ld a, [wCurOpponent]
|
||||
cp 200
|
||||
jr nc, .trainer
|
||||
res 0, c
|
||||
|
|
@ -105,7 +105,7 @@ GetBattleTransitionID_CompareLevels: ; 709ef (1c:49ef)
|
|||
ld a, [hl]
|
||||
add $3
|
||||
ld e, a
|
||||
ld a, [W_CURENEMYLVL]
|
||||
ld a, [wCurEnemyLVL]
|
||||
sub e
|
||||
jr nc, .highLevelEnemy
|
||||
res 1, c
|
||||
|
|
@ -122,7 +122,7 @@ GetBattleTransitionID_CompareLevels: ; 709ef (1c:49ef)
|
|||
; MANSION_1, SEAFOAM_ISLANDS_[2-5], POWER_PLANT, DIGLETTS_CAVE
|
||||
; and SILPH_CO_[9-11]F as dungeon maps
|
||||
GetBattleTransitionID_IsDungeonMap: ; 70a19 (1c:4a19)
|
||||
ld a, [W_CURMAP]
|
||||
ld a, [wCurMap]
|
||||
ld e, a
|
||||
ld hl, DungeonMaps1
|
||||
.loop1
|
||||
|
|
@ -151,7 +151,7 @@ GetBattleTransitionID_IsDungeonMap: ; 70a19 (1c:4a19)
|
|||
res 2, c
|
||||
ret
|
||||
|
||||
; GetBattleTransitionID_IsDungeonMap checks if W_CURMAP
|
||||
; GetBattleTransitionID_IsDungeonMap checks if wCurMap
|
||||
; is equal to one of these maps
|
||||
DungeonMaps1: ; 70a3f (1c:4a3f)
|
||||
db VIRIDIAN_FOREST
|
||||
|
|
@ -160,7 +160,7 @@ DungeonMaps1: ; 70a3f (1c:4a3f)
|
|||
db ROCK_TUNNEL_2
|
||||
db $FF
|
||||
|
||||
; GetBattleTransitionID_IsDungeonMap checks if W_CURMAP
|
||||
; GetBattleTransitionID_IsDungeonMap checks if wCurMap
|
||||
; is in between or equal to each pair of maps
|
||||
DungeonMaps2: ; 70a44 (1c:4a44)
|
||||
; all MT_MOON maps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue