Stts weight cleanup

This commit is contained in:
LagoLunatic
2024-01-13 00:51:57 -05:00
parent 609ed79837
commit f2bb2bb4a7
8 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ public:
virtual cCcD_GStts* GetGStts() {
return (cCcD_GStts*)this;
}
void Init(int, int, fopAc_ac_c*);
void Init(int weight, int, fopAc_ac_c* pActor);
virtual void Ct();
virtual void ClrAt() {
cCcD_Stts::ClrAt();
+2 -2
View File
@@ -176,7 +176,7 @@ BOOL enemy_ice(enemyice* ei) {
switch (ei->mState) {
case 0: // Not initialized
// Initialize the enemyice now.
ei->mStts.Init(0xFA, 0xFF, ac);
ei->mStts.Init(250, 0xFF, ac);
ei->mCyl.Set(cc_cyl_src);
ei->mCyl.SetStts(&ei->mStts);
ei->mCyl.SetR(ei->mWallRadius);
@@ -468,7 +468,7 @@ void enemy_fire(enemyfire* ef) {
ef->mFlameScaleY = 2.0f;
}
ef->mStts.Init(0xFA, 0xFF, ac);
ef->mStts.Init(250, 0xFF, ac);
ef->mSph.Set(fire_at_sph_src);
ef->mSph.SetStts(&ef->mStts);
break;
+1 -1
View File
@@ -1244,7 +1244,7 @@ static s32 daAM_Create(fopAc_ac_c* i_actor) {
&fopAcM_GetPosition_p(i_this), &fopAcM_GetOldPosition_p(i_this),
i_this, 1, &i_this->mAcchCir, &fopAcM_GetSpeed_p(i_this)
);
i_this->mStts.Init(0xFE, 1, i_this);
i_this->mStts.Init(254, 1, i_this);
i_this->mGravity = -10.0f;
+1 -1
View File
@@ -1350,7 +1350,7 @@ static s32 daAM2_Create(fopAc_ac_c* i_actor) {
&fopAcM_GetPosition_p(i_this), &fopAcM_GetOldPosition_p(i_this),
i_this, 1, &i_this->mAcchCir, &fopAcM_GetSpeed_p(i_this)
);
i_this->mStts.Init(0xFE, 1, i_this);
i_this->mStts.Init(254, 1, i_this);
i_this->mGravity = -3.0f;
+1 -1
View File
@@ -825,7 +825,7 @@ static s32 daBk_Create(fopAc_ac_c* i_actor) {
i_this->mMaxHealth = i_this->mHealth = 5;
}
i_this->mDamageReaction.mStts.Init(0xC8, 0xFF, i_this);
i_this->mDamageReaction.mStts.Init(200, 0xFF, i_this);
static dCcD_SrcCyl co_cyl_src = {}; // TODO
i_this->m0B88.Set(co_cyl_src);
i_this->m0B88.SetStts(&i_this->mDamageReaction.mStts);
+1 -1
View File
@@ -370,7 +370,7 @@ s32 daHookshot_c::create() {
procWait_init(FALSE);
mGravity = -5.0f;
mStts.Init(0xA, 0xFF, this);
mStts.Init(10, 0xFF, this);
mCps.Set(l_at_cps_src);
mCps.SetStts(&mStts);
+1 -1
View File
@@ -3500,7 +3500,7 @@ void daPy_lk_c::playerInit() {
mCameraInfoIdx = dComIfGp_getPlayerCameraID(0);
mpAttention = &dComIfGp_getAttention();
mStts.Init(0x78, 0xFF, this);
mStts.Init(120, 0xFF, this);
mCyl.Set(l_cyl_src);
mCyl.SetStts(&mStts);
mCyl.OnTgShieldFrontRange();
+2 -2
View File
@@ -62,14 +62,14 @@ void dCcD_GStts::Move() {
}
/* 800AB3DC-800AB46C .text Init__9dCcD_SttsFiiP10fopAc_ac_c */
void dCcD_Stts::Init(int param_0, int param_1, fopAc_ac_c* pActor) {
void dCcD_Stts::Init(int weight, int param_1, fopAc_ac_c* pActor) {
u32 procId;
if (pActor) {
procId = fpcM_GetID(pActor);
} else {
procId = fpcM_ERROR_PROCESS_ID_e;
}
cCcD_Stts::Init(param_0, param_1, pActor, procId);
cCcD_Stts::Init(weight, param_1, pActor, procId);
s32 roomNo;
if (pActor) {