summaryrefslogtreecommitdiff
path: root/src/battle/anim/perceive.c
blob: 14db096c6c1c34723c0cadf5aaa91210b7042443 (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
#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;

// perceive (shows a sparkle in a set of eyes, usually for heightened perception.)
// Used in Glare, Tickle, and Scary Face.

void sub_80D2904(struct Sprite* sprite)
{
    if (sprite->animEnded)
        DestroyAnimSprite(sprite);
}

void sub_80D2920(struct Sprite* sprite)
{
    InitAnimSpritePos(sprite, 1);
    sprite->callback = sub_80D2904;
}