summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-05-09 16:34:02 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-05-09 16:34:02 -0400
commit36fec0f7fddea841b5955cd4b5915015e416d8d8 (patch)
tree7e38466d3cb9a64a580ebc1f2e5b5d970dabe617 /src
parent95f230eb155fe5aa35ef107bc418281b1071052b (diff)
Disappear drop type cleanup
Diffstat (limited to 'src')
-rw-r--r--src/d/actor/d_a_am.cpp2
-rw-r--r--src/d/actor/d_a_am2.cpp2
-rw-r--r--src/d/actor/d_a_bk.cpp8
-rw-r--r--src/d/actor/d_a_disappear.cpp4
-rw-r--r--src/d/actor/d_a_ks.cpp4
-rw-r--r--src/d/actor/d_a_rd.cpp2
-rw-r--r--src/d/actor/d_a_ship.cpp8
-rw-r--r--src/d/d_jnt_hit.cpp1
-rw-r--r--src/f_op/f_op_actor_mng.cpp4
9 files changed, 16 insertions, 19 deletions
diff --git a/src/d/actor/d_a_am.cpp b/src/d/actor/d_a_am.cpp
index 7dfa1272..bf9cd549 100644
--- a/src/d/actor/d_a_am.cpp
+++ b/src/d/actor/d_a_am.cpp
@@ -917,7 +917,7 @@ static void action_itai_move(am_class* i_this) {
// fopAcM_seStart(i_this, JA_SE_LK_LAST_HIT, 0);
mDoAud_seStart(JA_SE_LK_LAST_HIT, &i_this->eyePos, 0, dComIfGp_getReverb(fopAcM_GetRoomNo(i_this)));
- fopAcM_createDisappear(i_this, &centerPos, 5);
+ fopAcM_createDisappear(i_this, &centerPos, 5, daDisItem_IBALL_e);
fopAcM_onActor(i_this);
fopAcM_delete(i_this);
break;
diff --git a/src/d/actor/d_a_am2.cpp b/src/d/actor/d_a_am2.cpp
index c61fdcb4..d3461013 100644
--- a/src/d/actor/d_a_am2.cpp
+++ b/src/d/actor/d_a_am2.cpp
@@ -934,7 +934,7 @@ static void action_itai(am2_class* i_this) {
dComIfGp_particle_set(dPa_name::ID_SCENE_81AF, &i_this->current.pos, &i_this->shape_angle);
dComIfGp_particle_set(dPa_name::ID_SCENE_81B0, &i_this->current.pos, &i_this->shape_angle);
fopAcM_seStart(i_this, JA_SE_CM_AM2_EXPLODE, 0);
- fopAcM_createDisappear(i_this, &centerPos, 5);
+ fopAcM_createDisappear(i_this, &centerPos, 5, daDisItem_IBALL_e);
fopAcM_onActor(i_this);
fopAcM_delete(i_this);
break;
diff --git a/src/d/actor/d_a_bk.cpp b/src/d/actor/d_a_bk.cpp
index 1ddbd865..7d71542b 100644
--- a/src/d/actor/d_a_bk.cpp
+++ b/src/d/actor/d_a_bk.cpp
@@ -2623,11 +2623,11 @@ static void fail(bk_class* i_this) {
case 1:
cXyz sp08 = i_this->current.pos;
sp08.y += 100.0f + l_bkHIO.m020;
- u8 dropType = daDisItem_NORMAL_e;
+ u8 drop_type = daDisItem_IBALL_e;
if (i_this->m0300[2] >= 1000) {
- dropType = daDisItem_NONE1_e;
+ drop_type = daDisItem_NONE1_e;
}
- fopAcM_createDisappear(i_this, &sp08, 10, dropType, i_this->stealItemBitNo);
+ fopAcM_createDisappear(i_this, &sp08, 10, drop_type, i_this->stealItemBitNo);
if (i_this->mType == 10) {
i_this->m02DE = 1;
i_this->dr.m004 = -1;
@@ -3907,8 +3907,6 @@ static void demo_camera(bk_class* i_this) {
s8 r28 = true;
cXyz sp8C;
cXyz sp80;
- cXyz sp44;
- cXyz sp38;
camera_class* r3;
switch (i_this->m1234) {
case 0:
diff --git a/src/d/actor/d_a_disappear.cpp b/src/d/actor/d_a_disappear.cpp
index 14948284..9fdb963f 100644
--- a/src/d/actor/d_a_disappear.cpp
+++ b/src/d/actor/d_a_disappear.cpp
@@ -27,7 +27,7 @@ static BOOL daDisappear_Execute(disappear_class* i_this) {
if (dropType == daDisItem_HEART_CONTAINER_e) {
fopAcM_createItemForBoss(&i_this->current.pos, 0, i_this->current.roomNo, &i_this->current.angle, NULL, 0);
}
- else if (dropType >= daDisItem_HEART_e && dropType <= daDisItem_UNK13_e) {
+ else if (dropType >= daDisItem_HEART_e && dropType <= daDisItem_NONE13_e) {
// Special type for Keese (ki) spawned in the Puppet Ganon fight.
// This also seems to be used by several other enemies, such as Molgera's spawn.
static u32 ki_item_d[] = {
@@ -101,7 +101,7 @@ static cPhs_State daDisappear_Create(fopAc_ac_c* i_this) {
fopAcM_SetupActor(dis, disappear_class);
- dis->health = fopAcM_GetParam(dis) & 0xFF;
+ dis->health = fopAcM_GetParam(dis) & 0xFF; // Drop type param is stored in health
f32 scaleMag = ((fopAcM_GetParam(dis) >> 8) & 0xFF) * 0.1f;
dis->mItemBitNo = (fopAcM_GetParam(dis) >> 0x10) & 0xFF;
diff --git a/src/d/actor/d_a_ks.cpp b/src/d/actor/d_a_ks.cpp
index ee434478..cf6420f5 100644
--- a/src/d/actor/d_a_ks.cpp
+++ b/src/d/actor/d_a_ks.cpp
@@ -644,7 +644,7 @@ void dead_eff_set(ks_class* i_this, cXyz* i_pos) {
}
}
else {
- drop_type = daDisItem_UNK13_e; // Might just be a void drop (ie. getting nothing)
+ drop_type = daDisItem_NONE13_e;
}
fopAcM_createDisappear(i_this, i_pos, 3, drop_type, 0xff);
@@ -1096,7 +1096,7 @@ void action_tubo_search(ks_class* i_this) {
i_this->mSph.OnAtVsBitSet(cCcD_AtSPrm_VsOther_e);
i_this->mSph.OffAtVsBitSet(cCcD_AtSPrm_VsPlayer_e);
- i_this->mSph.OffAtVsBitSet(cCcD_AtSPrm_NoTgHitInfSet_e);
+ i_this->mSph.OffAtSPrmBit(cCcD_AtSPrm_NoTgHitInfSet_e);
i_this->mSph.OnAtSPrmBit(cCcD_AtSPrm_Set_e);
diff --git a/src/d/actor/d_a_rd.cpp b/src/d/actor/d_a_rd.cpp
index cc308959..dc593358 100644
--- a/src/d/actor/d_a_rd.cpp
+++ b/src/d/actor/d_a_rd.cpp
@@ -800,7 +800,7 @@ void daRd_c::modeDeath() {
fopAcM_SetGroup(this, fopAc_ENV_e);
if (cLib_calcTimer(&mTimer1) == 0) {
- fopAcM_createDisappear(this, &current.pos, 5);
+ fopAcM_createDisappear(this, &current.pos, 5, daDisItem_IBALL_e);
fopAcM_delete(this);
}
}
diff --git a/src/d/actor/d_a_ship.cpp b/src/d/actor/d_a_ship.cpp
index e4eb43fd..f4b012a6 100644
--- a/src/d/actor/d_a_ship.cpp
+++ b/src/d/actor/d_a_ship.cpp
@@ -4252,20 +4252,20 @@ BOOL daShip_c::execute() {
cyl->SetC(sp9C);
dComIfG_Ccsp()->Set(cyl);
if (dComIfGp_checkPlayerStatus0(0, daPyStts0_SHIP_RIDE_e)) {
- cyl->SetTgGrp(cCcD_AtSPrm_VsPlayer_e);
+ cyl->SetTgGrp(cCcD_TgSPrm_IsPlayer_e);
}
else {
- cyl->SetTgGrp(cCcD_AtSPrm_VsPlayer_e | cCcD_AtSPrm_VsOther_e);
+ cyl->SetTgGrp(cCcD_TgSPrm_IsPlayer_e | cCcD_TgSPrm_IsOther_e);
}
}
cMtx_multVec(mpHeadAnm->getModel()->getAnmMtx(8), &sph_offset, &sp9C);
if (dComIfGp_checkPlayerStatus0(0, daPyStts0_SHIP_RIDE_e)) {
- mSph.SetTgGrp(cCcD_AtSPrm_VsPlayer_e);
+ mSph.SetTgGrp(cCcD_TgSPrm_IsPlayer_e);
}
else {
- mSph.SetTgGrp(cCcD_AtSPrm_VsPlayer_e | cCcD_AtSPrm_VsOther_e);
+ mSph.SetTgGrp(cCcD_TgSPrm_IsPlayer_e | cCcD_TgSPrm_IsOther_e);
}
mSph.SetC(sp9C);
diff --git a/src/d/d_jnt_hit.cpp b/src/d/d_jnt_hit.cpp
index 75ee7c9f..10ff0872 100644
--- a/src/d/d_jnt_hit.cpp
+++ b/src/d/d_jnt_hit.cpp
@@ -256,7 +256,6 @@ s32 JntHit_c::searchJntHitPosAngleOffset(cXyz* r18, csXyz* r28, cXyz* r29, csXyz
cXyz r1_11C;
cXyz r1_110;
cXyz r1_104;
- cXyz r1_2C;
csXyz r1_24;
J3DModel* model = mpModel;
f32 f31 = 10000.0f;
diff --git a/src/f_op/f_op_actor_mng.cpp b/src/f_op/f_op_actor_mng.cpp
index c311a1cb..b3321bfb 100644
--- a/src/f_op/f_op_actor_mng.cpp
+++ b/src/f_op/f_op_actor_mng.cpp
@@ -1273,8 +1273,8 @@ fopAc_ac_c* fopAcM_myRoomSearchEnemy(s8 roomNo) {
}
/* 80027A9C-80027B24 .text fopAcM_createDisappear__FP10fopAc_ac_cP4cXyzUcUcUc */
-fpc_ProcID fopAcM_createDisappear(fopAc_ac_c* i_actor, cXyz* p_pos, u8 i_scale, u8 i_health, u8 i_itemBitNo) {
- u32 params = (i_itemBitNo & 0xFF) << 0x10 | (i_scale & 0xFF) << 0x08 | (i_health & 0xFF);
+fpc_ProcID fopAcM_createDisappear(fopAc_ac_c* i_actor, cXyz* p_pos, u8 i_scale, u8 i_dropType, u8 i_itemBitNo) {
+ u32 params = (i_itemBitNo & 0xFF) << 0x10 | (i_scale & 0xFF) << 0x08 | (i_dropType & 0xFF);
fopAc_ac_c* disappear = (fopAc_ac_c*)fopAcM_fastCreate(PROC_DISAPPEAR, params, p_pos, fopAcM_GetRoomNo(i_actor), fopAcM_GetAngle_p(i_actor));
if (disappear) {
disappear->itemTableIdx = i_actor->itemTableIdx;