summaryrefslogtreecommitdiff
path: root/scripts/mtmoon3_2.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-06-06 11:04:20 -0500
committerdannye <corrnondacqb@yahoo.com>2016-06-06 11:04:20 -0500
commit2bb64d11e6015e39e934e7359697c08636645994 (patch)
tree05099ae6c4353263cf52f83c3393e38d178a529a /scripts/mtmoon3_2.asm
parenta33f356461e29559950f51dbef2e2d83235ea98f (diff)
Clean up main.asm
recreated deleted file that never should have been unused
Diffstat (limited to 'scripts/mtmoon3_2.asm')
-rwxr-xr-xscripts/mtmoon3_2.asm28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/mtmoon3_2.asm b/scripts/mtmoon3_2.asm
new file mode 100755
index 00000000..bb9b25a8
--- /dev/null
+++ b/scripts/mtmoon3_2.asm
@@ -0,0 +1,28 @@
+MtMoon3Script_4a325: ; pikachu-related function?
+ ld a, [wd472]
+ bit 7, a
+ ret z
+ ld a, [wWalkBikeSurfState]
+ and a
+ ret nz
+
+ push hl
+ push bc
+ callab GetPikachuFacingDirectionAndReturnToE
+ pop bc
+ pop hl
+ ld a, b
+ cp e
+ ret nz
+
+ push hl
+ ld a, [wUpdateSpritesEnabled]
+ push af
+ ld a, $ff
+ ld [wUpdateSpritesEnabled], a
+ callab LoadPikachuShadowIntoVRAM
+ pop af
+ ld [wUpdateSpritesEnabled], a
+ pop hl
+ call Func_159b
+ ret