mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-21 23:12:16 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
32
home/region.asm
Normal file
32
home/region.asm
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
IsInJohto::
|
||||
; Return 0 if the player is in Johto, and 1 in Kanto.
|
||||
|
||||
ld a, [wMapGroup]
|
||||
ld b, a
|
||||
ld a, [wMapNumber]
|
||||
ld c, a
|
||||
call GetWorldMapLocation
|
||||
|
||||
cp LANDMARK_FAST_SHIP
|
||||
jr z, .Johto
|
||||
|
||||
cp LANDMARK_SPECIAL
|
||||
jr nz, .CheckRegion
|
||||
|
||||
ld a, [wBackupMapGroup]
|
||||
ld b, a
|
||||
ld a, [wBackupMapNumber]
|
||||
ld c, a
|
||||
call GetWorldMapLocation
|
||||
|
||||
.CheckRegion:
|
||||
cp KANTO_LANDMARK
|
||||
jr nc, .Kanto
|
||||
|
||||
.Johto:
|
||||
xor a ; JOHTO_REGION
|
||||
ret
|
||||
|
||||
.Kanto:
|
||||
ld a, KANTO_REGION
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue