mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
split bank 1 into files
This commit is contained in:
parent
6f1ac06e03
commit
c2381bb3e6
12 changed files with 1482 additions and 1475 deletions
29
engine/overworld/set_blackout_map.asm
Normal file
29
engine/overworld/set_blackout_map.asm
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
SetLastBlackoutMap:
|
||||
; Set the map to return to when
|
||||
; blacking out or using Teleport or Dig.
|
||||
; Safari rest houses don't count.
|
||||
|
||||
push hl
|
||||
ld hl, SafariZoneRestHouses
|
||||
ld a, [wCurMap]
|
||||
ld b, a
|
||||
.loop
|
||||
ld a, [hli]
|
||||
cp -1
|
||||
jr z, .notresthouse
|
||||
cp b
|
||||
jr nz, .loop
|
||||
jr .done
|
||||
|
||||
.notresthouse
|
||||
ld a, [wLastMap]
|
||||
ld [wLastBlackoutMap], a
|
||||
.done
|
||||
pop hl
|
||||
ret
|
||||
|
||||
SafariZoneRestHouses:
|
||||
db SAFARI_ZONE_REST_HOUSE_2
|
||||
db SAFARI_ZONE_REST_HOUSE_3
|
||||
db SAFARI_ZONE_REST_HOUSE_4
|
||||
db -1
|
||||
Loading…
Add table
Add a link
Reference in a new issue