diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-08 00:35:33 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-08 00:35:33 -0400 |
commit | 5da4ad3d5c62292f062d4f7b4382e6c09b7faaea (patch) | |
tree | 97319f45578efa0901fb1986678c16bbdeda6bcc /scripts/mtmoon3_2.asm | |
parent | e181c27c5e396aea254b471b182df3237eeb03ce (diff) | |
parent | 2bb64d11e6015e39e934e7359697c08636645994 (diff) |
Merge branch 'master' of github.com:pret/pokeyellow
Diffstat (limited to 'scripts/mtmoon3_2.asm')
-rwxr-xr-x | scripts/mtmoon3_2.asm | 28 |
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..c6ec92b4 --- /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 ApplyPikachuMovementData + ret |