aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/dungeon_warps.asm
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-05-22 21:05:51 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-05-22 21:05:51 -0400
commit980ce8005df3ff2c2d008f3fe2c36ed357b2a2cb (patch)
tree745646bc2baccb60da67d83e3428f4d62cd923c3 /engine/overworld/dungeon_warps.asm
parentengine/printer.asm (diff)
parentBank11 and 14 misc functions. (diff)
downloadpokeyellow-980ce8005df3ff2c2d008f3fe2c36ed357b2a2cb.tar.gz
pokeyellow-980ce8005df3ff2c2d008f3fe2c36ed357b2a2cb.tar.xz
pokeyellow-980ce8005df3ff2c2d008f3fe2c36ed357b2a2cb.zip
Merge branch 'master' of github.com:pret/pokeyellow
Diffstat (limited to 'engine/overworld/dungeon_warps.asm')
-rw-r--r--engine/overworld/dungeon_warps.asm15
1 files changed, 15 insertions, 0 deletions
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