summaryrefslogtreecommitdiff
path: root/src/object/pinwheel.c
diff options
context:
space:
mode:
authorHenny022p <73211432+Henny022p@users.noreply.github.com>2026-02-08 18:32:38 +0100
committerGitHub <noreply@github.com>2026-02-08 18:32:38 +0100
commit5ab63f00e522ff69c5bc987e379f0163943f2833 (patch)
tree53622222ac729c6ab6dc75ef7f9bafa8031daf18 /src/object/pinwheel.c
parent73901a0a012d55ebb66a4627dcb246d19737fcb5 (diff)
parent5b2cafdc894823d57beee8f3947a391d881d91de (diff)
Merge pull request #701 from Henny022p/cleanup/250302HEADmaster
Various code cleanup changes
Diffstat (limited to 'src/object/pinwheel.c')
-rw-r--r--src/object/pinwheel.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/object/pinwheel.c b/src/object/pinwheel.c
index 35d161a8..dc69967e 100644
--- a/src/object/pinwheel.c
+++ b/src/object/pinwheel.c
@@ -7,13 +7,14 @@
#include "entity.h"
#include "flags.h"
#include "object.h"
+#include "effects.h"
typedef struct {
/*0x00*/ Entity base;
- /*0x68*/ u16 unk_68;
+ /*0x68*/ u16 flag;
} PinwheelEntity;
-static const u16 gUnk_08125050[] = {
+static const u16 gPinwheelFlags[] = {
KUMOUE_02_AWASE_01, KUMOUE_02_AWASE_02, KUMOUE_02_AWASE_03, KUMOUE_02_AWASE_04, KUMOUE_02_AWASE_05, BEGIN_1,
};
extern u32 gUnk_020342F8;
@@ -38,9 +39,9 @@ void Pinwheel(PinwheelEntity* this) {
}
void Pinwheel_Init(PinwheelEntity* this) {
- this->unk_68 = gUnk_08125050[super->type2];
+ this->flag = gPinwheelFlags[super->type2];
super->spritePriority.b0 = 7;
- if (CheckLocalFlag(this->unk_68) != 0) {
+ if (CheckLocalFlag(this->flag) != 0) {
super->action = 2;
} else {
super->action = 1;
@@ -49,9 +50,9 @@ void Pinwheel_Init(PinwheelEntity* this) {
}
void Pinwheel_Action1(PinwheelEntity* this) {
- if (CheckLocalFlag(this->unk_68) != 0) {
+ if (CheckLocalFlag(this->flag) != 0) {
super->action = 2;
- CreateDust(super);
+ CreateDeathFx(super);
}
}
void Pinwheel_Action2(PinwheelEntity* this) {