From f3de3a20dfccb8a57cdf9feb860bf1e89a733f50 Mon Sep 17 00:00:00 2001 From: luckytyphlosion Date: Sun, 22 May 2016 21:02:18 -0400 Subject: Bank11 and 14 misc functions. --- engine/overworld/dungeon_warps.asm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 engine/overworld/dungeon_warps.asm (limited to 'engine/overworld/dungeon_warps.asm') diff --git a/engine/overworld/dungeon_warps.asm b/engine/overworld/dungeon_warps.asm new file mode 100644 index 00000000..b234c3a1 --- /dev/null +++ b/engine/overworld/dungeon_warps.asm @@ -0,0 +1,15 @@ +IsPlayerOnDungeonWarp: ; 46bf3 (11:6bf3) + xor a + ld [wWhichDungeonWarp], a + ld a, [wd72d] + bit 4, a + ret nz + call ArePlayerCoordsInArray + ret nc + ld a, [wCoordIndex] + ld [wWhichDungeonWarp], a + ld hl, wd72d + set 4, [hl] + ld hl, wd732 + set 4, [hl] + ret \ No newline at end of file -- cgit v1.3.1-sl0p