You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Add support for a level having more than one associated landmark, for levels with alternative starting points (#12)
This commit is contained in:
@@ -23,6 +23,8 @@ if DEF(_DEBUG)
|
||||
ld a, 100
|
||||
ld [wCurPartyLevel], a
|
||||
predef TryAddMonToParty
|
||||
ld a, -1
|
||||
ld [wUnlockedLevels], a ; debug
|
||||
endc
|
||||
farcall AutoSaveGameOutsideOverworld
|
||||
jp GameMenu
|
||||
|
@@ -4,8 +4,6 @@ LevelSelectionMenu::
|
||||
ldh [hMapAnims], a
|
||||
ld a, 1 << 2 ; do not clear wShadowOAM during DoNextFrameForAllSprites
|
||||
ld [wVramState], a
|
||||
ld a, -1
|
||||
ld [wUnlockedLevels], a ; debug
|
||||
|
||||
call ClearBGPalettes
|
||||
call ClearTilemap
|
||||
@@ -598,6 +596,12 @@ LevelSelectionMenu_GetValidDirections:
|
||||
; the landmark byte of this transition is two bytes back
|
||||
dec hl
|
||||
dec hl
|
||||
; use LandmarkToLevelTable to find the level that this landmark belongs to
|
||||
ld e, [hl]
|
||||
ld d, 0
|
||||
ld hl, LandmarkToLevelTable
|
||||
add hl, de
|
||||
; find if said level has been unlocked
|
||||
ld e, [hl]
|
||||
ld b, CHECK_FLAG
|
||||
call UnlockedLevelsFlagAction
|
||||
|
Reference in New Issue
Block a user