summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-09-04 22:32:44 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-09-04 22:32:44 -0400
commit7592de577a9d065d52e950a4e7f071623c233b6d (patch)
tree94fc9c9598608bd887a5d66a26e119cad74d6ce2 /src
parent2aca208b0339ede43cca22b5aba257551c515783 (diff)
A bunch of small sprite callbacks
Diffstat (limited to 'src')
-rw-r--r--src/trade.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/trade.c b/src/trade.c
index 06da2c333..13811336e 100644
--- a/src/trade.c
+++ b/src/trade.c
@@ -3511,6 +3511,50 @@ static bool8 sub_804ABF8(void)
asm(".section .text.sub_804DAD4");
+void sub_804B058(struct Sprite *sprite)
+{
+ if (++ sprite->data0 == 10)
+ {
+ PlaySE(SE_BOWA);
+ sprite->data0 = 0;
+ }
+}
+
+void sub_804B07C(struct Sprite *sprite)
+{
+ if (sprite->data1 == 0)
+ {
+ if (++ sprite->data0 == 12)
+ sprite->data0 = 0;
+ LoadPalette(&gTradeGlow2PaletteAnimTable[sprite->data0], 16 * (sprite->oam.paletteNum + 16) + 4, 2);
+ }
+}
+
+void sub_804B0BC(struct Sprite *sprite)
+{
+ sprite->data0 ++;
+ sprite->pos2.y ++;
+ if (sprite->data0 == 10)
+ DestroySprite(sprite);
+}
+
+void sub_804B0E0(struct Sprite *sprite)
+{
+ sprite->data0 ++;
+ sprite->pos2.y --;
+ if (sprite->data0 == 10)
+ DestroySprite(sprite);
+}
+
+void sub_804B104(struct Sprite *sprite)
+{
+ if (++ sprite->data0 == 15)
+ {
+ PlaySE(SE_W107);
+ sprite->data0 = 0;
+ }
+}
+
void sub_804B128(void)
{
struct BgAffineDstData dest;