summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Winwood <twwinwood@gmail.com>2018-06-18 15:34:48 +0100
committerThomas Winwood <twwinwood@gmail.com>2018-06-18 15:34:48 +0100
commit41a5fc73fd85701aa761b22f7068e590d926bea0 (patch)
treeb168109187c6a1479032faa62045601cbf38d042 /src
parent3237628ea71fdf645160481e62ed52a5579c3d74 (diff)
Decompile sub_80DDE7C
Diffstat (limited to 'src')
-rw-r--r--src/ghost.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ghost.c b/src/ghost.c
index 6591ad5af..e77f26fb1 100644
--- a/src/ghost.c
+++ b/src/ghost.c
@@ -13,6 +13,7 @@ void sub_80DDC4C(struct Sprite *);
void sub_80DDCC8(struct Sprite *);
void sub_80DDD78(struct Sprite *);
void sub_80DDE7C(u8 taskId);
+void sub_80DDED0(u8 taskId);
void sub_80DDB6C(struct Sprite *sprite) {
InitAnimSpritePos(sprite, 1);
@@ -151,4 +152,17 @@ void sub_80DDDF0(u8 r5) {
gTasks[r5].data[2] = 0;
gTasks[r5].data[3] = 0x10;
gTasks[r5].func = &sub_80DDE7C;
+}
+
+void sub_80DDE7C(u8 taskId) {
+ gTasks[taskId].data[10] += 1;
+ if (gTasks[taskId].data[10] == 3) {
+ gTasks[taskId].data[10] = 0;
+ gTasks[taskId].data[2] += 1;
+ gTasks[taskId].data[3] -= 1;
+ REG_BLDALPHA = gTasks[taskId].data[3] << 8 | gTasks[taskId].data[2];
+ if (gTasks[taskId].data[2] != 9)
+ return;
+ gTasks[taskId].func = &sub_80DDED0;
+ }
} \ No newline at end of file