From a71fd1dde67b82d0a151ea1abeed4abf7b154cf4 Mon Sep 17 00:00:00 2001 From: vulcandth Date: Mon, 1 Jan 2024 21:18:10 -0600 Subject: [PATCH] Document `BattleAnim_Tackle` reaches horizontal sprite limit Co-Authored-By: SoupPotato <22991349+SoupPotato@users.noreply.github.com> --- data/moves/animations.asm | 1 + docs/bugs_and_glitches.md | 19 +++++++++++++++++++ docs/images/tackle_animation_bug.png | Bin 0 -> 2504 bytes 3 files changed, 20 insertions(+) create mode 100644 docs/images/tackle_animation_bug.png diff --git a/data/moves/animations.asm b/data/moves/animations.asm index 5c2499016e4..ffc123e648d 100644 --- a/data/moves/animations.asm +++ b/data/moves/animations.asm @@ -2082,6 +2082,7 @@ BattleAnim_Headbutt: anim_ret BattleAnim_Tackle: +; BUG: BattleAnim_Tackle reaches horizontal sprite limit (see docs/bugs_and_glitches.md) anim_1gfx BATTLE_ANIM_GFX_HIT anim_call BattleAnim_TargetObj_2Row anim_bgeffect BATTLE_BG_EFFECT_TACKLE, $0, BG_EFFECT_USER, $0 diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index 44ea96dd07f..c120ebf64da 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -78,6 +78,7 @@ Fixes in the [multi-player battle engine](#multi-player-battle-engine) category - [Using a Park Ball in non-Contest battles has a corrupt animation](#using-a-park-ball-in-non-contest-battles-has-a-corrupt-animation) - [Battle transitions fail to account for the enemy's level](#battle-transitions-fail-to-account-for-the-enemys-level) - [Some trainer NPCs have inconsistent overworld sprites](#some-trainer-npcs-have-inconsistent-overworld-sprites) + - [`BattleAnim_Tackle` reaches horizontal sprite limit](#battleanim_tackle-reaches-horizontal-sprite-limit) - [Audio](#audio) - [Slot machine payout sound effects cut each other off](#slot-machine-payout-sound-effects-cut-each-other-off) - [Team Rocket battle music is not used for Executives or Scientists](#team-rocket-battle-music-is-not-used-for-executives-or-scientists) @@ -2065,6 +2066,24 @@ Most of the NPCs in [maps/NationalParkBugContest.asm](https://github.com/pret/po (The use of `SPRITE_ROCKER` instead of `SPRITE_COOLTRAINER_M` for `COOLTRAINERM NICK` may also be an intentional reference to the player's brother from the [Space World '97 beta](https://github.com/pret/pokegold-spaceworld).) +### `BattleAnim_Tackle` reaches horizontal sprite limit + +`BattleAnim_Tackle` in Pokémon Crystal reaches the horiztonal sprite limit due to two rows of the enemy's feet being copied from background tiles to sprites. This fix restores the animation to only copy one row like in Pokémon Gold and Silver. + +![image](https://raw.githubusercontent.com/pret/pokecrystal/master/docs/images/tackle_animation_bug.png) + +**Fix:** Edit `BattleAnim_Tackle` in [data/moves/animations.asm](https://github.com/pret/pokecrystal/blob/master/data/moves/animations.asm): + +```diff + BattleAnim_Tackle: +-; BUG: BattleAnim_Tackle reaches horizontal sprite limit (see docs/bugs_and_glitches.md) + anim_1gfx BATTLE_ANIM_GFX_HIT +- anim_call BattleAnim_TargetObj_2Row ++ anim_call BattleAnim_TargetObj_1Row + anim_bgeffect BATTLE_BG_EFFECT_TACKLE, $0, BG_EFFECT_USER, $0 +``` + + ## Audio diff --git a/docs/images/tackle_animation_bug.png b/docs/images/tackle_animation_bug.png new file mode 100644 index 0000000000000000000000000000000000000000..5b81428c726fb6b3596b574d4bacfc3f71d2b0ee GIT binary patch literal 2504 zcmV;(2{-nMP)0058(0ssI20N3}|000SfNkl zF?-rP5XVn_-l1&CM#g4qxAGC-8@y~~bT+d!Tjy@=1{)s9miHTwkC1NdmX2jhHoEy8 zj$VZ%%eE}bwz%KW2W%lIf8XhJcP1jwb1)%

#?@4Afy|g^P(N{AL z)Ns)a(U)-6F92=1XnCPE##2lfY!+Mu35E}h(Y5Yx^;4EWo$&>)bCJ`Qi|!9+zCaAg zf*qoI4(R%8!9oaGQCja2s9>5L=s`aPF3MtBqBG+pmO$@(=&y@bLUdpk?S#uVscnoo zEC;DLrw#oSShw0DJ3dd%Y7zN$%`Vy|FxyJoESF0FSgls=y+v&oT{jl(+m&%{SFPhV z>G1v2;rl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