From 2bb64d11e6015e39e934e7359697c08636645994 Mon Sep 17 00:00:00 2001 From: dannye Date: Mon, 6 Jun 2016 11:04:20 -0500 Subject: Clean up main.asm recreated deleted file that never should have been unused --- scripts/mtmoon3_2.asm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 scripts/mtmoon3_2.asm (limited to 'scripts/mtmoon3_2.asm') 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 -- cgit v1.3.1-sl0p