summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlepelog <25211966+lepelog@users.noreply.github.com>2026-06-29 00:18:39 +0200
committerlepelog <25211966+lepelog@users.noreply.github.com>2026-06-29 00:18:39 +0200
commitabfd3771a0bb5638f2aa0b05aa0b54f615f6c45d (patch)
treeb706e49256eaaeddf4829030e838d666e9835611 /include
parentc6ca28231d618bfeaae3866c42cd91c8b45fcddd (diff)
progress
Diffstat (limited to 'include')
-rw-r--r--include/d/a/npc/d_a_npc_bee.h8
-rw-r--r--include/d/a/obj/d_a_obj_spore.h8
-rw-r--r--include/m/m_vec.h3
3 files changed, 12 insertions, 7 deletions
diff --git a/include/d/a/npc/d_a_npc_bee.h b/include/d/a/npc/d_a_npc_bee.h
index 0ed39658..89899018 100644
--- a/include/d/a/npc/d_a_npc_bee.h
+++ b/include/d/a/npc/d_a_npc_bee.h
@@ -40,7 +40,7 @@ public:
/* 0x00B */ u8 mWallReflectTimer;
/* 0x00C */ s16 mTimer; // only counts up, used for kinda random calculations
/* 0x00E */ s16 mFlyingStatesTimer; // used for vanishing after flying up and something else
- /* 0x010 */ f32 field_0x010;
+ /* 0x010 */ f32 mCrawlingSpeed;
/* 0x014 */ f32 mSpeed;
/* 0x018 */ mVec3_c mPos;
/* 0x024 */ mVec3_c field_0x024;
@@ -75,11 +75,11 @@ private:
/* 0x0378 */ u8 mSwarmBeeCount;
/* 0x0379 */ u8 mRumbleTimer; // rumble timer
/* 0x037A */ u8 mSceneflag;
- /* 0x037B */ u8 field_0x037B;
+ /* 0x037B */ u8 field_0x037B; // padding
/* 0x037C */ s16 mFrameCounter; // used to only search for new targets every 16 frames
- /* 0x037E */ u8 field_0x037E[0x380-0x37E];
+ /* 0x037E */ u8 field_0x037E[2]; // padding
/* 0x0380 */ f32 mAttackActorDistFromHome;
- /* 0x0384 */ u8 field_0x0384[0x388-0x384];
+ /* 0x0384 */ u8 field_0x0384[4]; // padding?
/* 0x0388 */ nw4r::g3d::ResFile mRes;
/* 0x038C */ dShpProc1_c mBeeModels[4];
/* 0x045C */ dAcNpcBeeSingleBee mBees[100];
diff --git a/include/d/a/obj/d_a_obj_spore.h b/include/d/a/obj/d_a_obj_spore.h
index 2f5418c7..74761989 100644
--- a/include/d/a/obj/d_a_obj_spore.h
+++ b/include/d/a/obj/d_a_obj_spore.h
@@ -1,6 +1,7 @@
#ifndef D_A_O_SPORE_H
#define D_A_O_SPORE_H
+#include "common.h"
#include "d/a/obj/d_a_obj_base.h"
#include "f/f_list_mg.h"
class dAcOSpore_c : public dAcObjBase_c {
@@ -9,7 +10,12 @@ public:
virtual ~dAcOSpore_c() {}
static fLiNdBa_c* getListHead();
-
+ s32 getSporeType() const {
+ return mParams & 0xF;
+ }
+ bool isGlitteringSpore() const {
+ return getSporeType() == 1;
+ }
private:
static fLiMgBa_c sSpores;
diff --git a/include/m/m_vec.h b/include/m/m_vec.h
index bbde3920..8a61d03f 100644
--- a/include/m/m_vec.h
+++ b/include/m/m_vec.h
@@ -272,8 +272,7 @@ public:
return cM::atan2s(-y, absXZ());
}
- // TODO: make sure this isn't bad
- s32 atan2sY_XZ() const {
+ s16 atan2sY_XZ() const {
return cM::atan2s(y, absXZ());
}