mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Use constants to delineate map types, and factor out more data
This commit is contained in:
parent
70eac3a1f7
commit
bfd9f617c9
17 changed files with 126 additions and 135 deletions
|
|
@ -145,11 +145,11 @@ SetPal_Overworld:
|
|||
cp CAVERN
|
||||
jr z, .caveOrBruno
|
||||
ld a, [wCurMap]
|
||||
cp REDS_HOUSE_1F
|
||||
cp FIRST_INDOOR_MAP
|
||||
jr c, .townOrRoute
|
||||
cp CERULEAN_CAVE_2F
|
||||
jr c, .normalDungeonOrBuilding
|
||||
cp NAME_RATERS_HOUSE
|
||||
cp CERULEAN_CAVE_1F + 1
|
||||
jr c, .caveOrBruno
|
||||
cp LORELEIS_ROOM
|
||||
jr z, .Lorelei
|
||||
|
|
@ -158,7 +158,7 @@ SetPal_Overworld:
|
|||
.normalDungeonOrBuilding
|
||||
ld a, [wLastMap] ; town or route that current dungeon or building is located
|
||||
.townOrRoute
|
||||
cp SAFFRON_CITY + 1
|
||||
cp NUM_CITY_MAPS
|
||||
jr c, .town
|
||||
ld a, PAL_ROUTE - 1
|
||||
.town
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue