blob: 6306778aed82d6119806697de88e0a1b6576288a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "global.h"
#include "rom_8077ABC.h"
#include "trig.h"
#include "battle_anim.h"
#include "sound.h"
extern s16 gBattleAnimArgs[];
extern u8 gAnimBankAttacker;
extern u8 gAnimBankTarget;
// drum (using hands to slap the Pokemon's belly in a rhythm.)
// Used in Belly Drum.
void sub_80CEDF0(struct Sprite* sprite)
{
s16 a;
if (gBattleAnimArgs[0] == 1)
{
sprite->oam.matrixNum = 8;
a = 16;
}
else
{
a = -16;
}
sprite->pos1.x = GetBankPosition(gAnimBankAttacker, 2) + a;
sprite->pos1.y = GetBankPosition(gAnimBankAttacker, 3) + 8;
sprite->data[0] = 8;
sprite->callback = sub_80782D8;
StoreSpriteCallbackInData(sprite, DestroyAnimSprite);
}
|