From 59ca3b7be50dfd2c44b8dcc95fef583788fcc3ce Mon Sep 17 00:00:00 2001 From: LeonarthCG Date: Mon, 21 Jun 2021 11:01:34 +0200 Subject: decompile object31 (frozenFlower) --- src/object.c | 2 +- src/object/frozenFlower.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/object/frozenFlower.c (limited to 'src') diff --git a/src/object.c b/src/object.c index b5eff460..768c8d12 100644 --- a/src/object.c +++ b/src/object.c @@ -52,7 +52,7 @@ void (*const gObjectFunctions[])(Entity*) = { [PUSHABLE_ROCK] = PushableRock, [HITTABLE_LEVER] = HittableLever, [OBJECT_30] = Object30, - [OBJECT_31] = Object31, + [FROZEN_FLOWER] = FrozenFlower, [PULLABLE_MUSHROOM] = PullableMushroom, [BOLLARD] = Bollard, [WARP_POINT] = WarpPoint, diff --git a/src/object/frozenFlower.c b/src/object/frozenFlower.c new file mode 100644 index 00000000..a668506b --- /dev/null +++ b/src/object/frozenFlower.c @@ -0,0 +1,21 @@ +#include "global.h" +#include "entity.h" + +extern void (*const gUnk_0812119C[])(Entity*); + +void FrozenFlower(Entity* this) +{ + gUnk_0812119C[this->action](this); +} + +void sub_0808A9DC(Entity* this) +{ + this->action = 1; + this->frameIndex = this->type; + this->spriteRendering.b3 = 3; + this->spritePriority.b0 = 7; +} + +void nullsub_519(Entity* this) +{ +} -- cgit v1.2.3