summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-04-30 23:44:44 -0400
committeryenatch <yenatch@gmail.com>2014-04-30 23:44:44 -0400
commit95af7dd873165ca197372a7b6e896fe3bd66e24a (patch)
tree1d215128aab24b24e3b930648c98a04aedeb5d19 /main.asm
parentc58a5b8b7a8dcdf47ea87b4f43c93e00f0de5106 (diff)
Move RegionCheck into engine/landmarks.asm.
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm38
1 files changed, 0 insertions, 38 deletions
diff --git a/main.asm b/main.asm
index dd5159547..a39ae6a64 100644
--- a/main.asm
+++ b/main.asm
@@ -114283,44 +114283,6 @@ INCLUDE "battle/move_names.asm"
INCLUDE "engine/landmarks.asm"
-RegionCheck: ; 0x1caea1
-; Checks if the player is in Kanto or Johto.
-; If in Johto, returns 0 in e.
-; If in Kanto, returns 1 in e.
- ld a, [MapGroup]
- ld b, a
- ld a, [MapNumber]
- ld c, a
- call GetWorldMapLocation
- cp FAST_SHIP ; S.S. Aqua
- jr z, .johto
- cp SPECIAL_MAP
- jr nz, .checkagain
-
-; In a special map, get the backup map group / map id
- ld a, [BackupMapGroup]
- ld b, a
- ld a, [BackupMapNumber]
- ld c, a
- call GetWorldMapLocation
-
-.checkagain
- cp KANTO_LANDMARK
- jr c, .johto
-
-; Victory Road area is considered to be Johto.
- cp VICTORY_ROAD
- jr c, .kanto
-
-.johto
- ld e, 0
- ret
-.kanto
- ld e, 1
- ret
-
-
-
SECTION "bank75", ROMX, BANK[$75]