Ensure anchor points are applied when landing after warp by creating a new setup script

This commit is contained in:
xCrystal
2023-12-14 17:11:15 +01:00
parent 429aad6798
commit af9ab166c4
6 changed files with 28 additions and 3 deletions

2
engine/board/menu.asm Executable file → Normal file
View File

@@ -93,7 +93,7 @@ BoardMenuScript::
res 2, [hl]
ld a, BOARDEVENT_VIEW_MAP_MODE
ldh [hCurBoardEvent], a
ld a, TRUE
ld a, 100
ld [wViewMapModeRange], a
ld a, [wMapGroup]
ld [wBeforeViewMapMapGroup], a

2
engine/board/spaces.asm Executable file → Normal file
View File

@@ -271,7 +271,7 @@ PromptPlayerToChooseBranchDirection:
.EnterViewMapMode:
ld a, BOARDEVENT_VIEW_MAP_MODE
ldh [hCurBoardEvent], a
ld a, TRUE
ld a, 100
ld [wViewMapModeRange], a
ld a, [wMapGroup]
ld [wBeforeViewMapMapGroup], a