mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-26 08:24:31 -04:00
Actor status consolidation & process profile definition editing (#3117)
* Consolidate fopAcM_STATUS into fopAc_Status_e * Add _e suffix to fopAcStts enums * Prepare for profile enumeration * Correct typo in scene_process_profile_definition * Manually handle g_profile_Obj_DamCps (inline preprocessing) * Correct g_profile_TAG_LV5SOUP procname to enum * Create d_priority.h * Update process profile definitions * Moved inline comments to the left * Add missing fopAcStts enums * Add d_priority.h include in f_pc_leaf.h * Manually update d_a_obj_damCps profile * Replace fopAcStts enums replacing and anticipatory profile size correction * Changed profile size from literal to sizeof() in anticipation of PR #3116 * Provided putative names to staff-related status enums * Replaced appropriate literals with fopAcStts enums * Fix borked merge * Rename item number enums and move to d_item_data.h * Rename process profile name & draw priority enums * Move process profile name & draw priority enums to appropriate files * Moved fpcNm_ enums from d/d_procname.h to f_pc/f_pc_name.h * Moved fpcDwPi_ enums from d/d_priority.h to f_pc/f_pc_draw_priority.h * ACTUALLY (whoops) stage merge * Correct item mistranslation Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com> --------- Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
This commit is contained in:
+20
-20
@@ -521,7 +521,7 @@ static void e_rdb_damage(e_rdb_class* i_this) {
|
||||
|
||||
static void e_rdb_end(e_rdb_class* i_this) {
|
||||
fopAc_ac_c* player = dComIfGp_getPlayer(0);
|
||||
e_wb_class* actor = (e_wb_class*)fopAcM_SearchByName(PROC_E_WB);
|
||||
e_wb_class* actor = (e_wb_class*)fopAcM_SearchByName(fpcNm_E_WB_e);
|
||||
int frame = i_this->mpModelMorf->getFrame();
|
||||
cXyz sp40;
|
||||
f32 fVar1 = 0.0f;
|
||||
@@ -864,7 +864,7 @@ static void damage_check(e_rdb_class* i_this) {
|
||||
}
|
||||
|
||||
static void* shot_s_sub(void* i_actor, void* i_data) {
|
||||
if ((fopAcM_IsActor(i_actor) && fopAcM_GetName(i_actor) == PROC_ARROW) &&
|
||||
if ((fopAcM_IsActor(i_actor) && fopAcM_GetName(i_actor) == fpcNm_ARROW_e) &&
|
||||
(fopAcM_GetParam(i_actor) == 1 || fopAcM_GetParam(i_actor) == 2))
|
||||
{
|
||||
cXyz sp28 = static_cast<fopAc_ac_c*>(i_data)->current.pos -
|
||||
@@ -1285,7 +1285,7 @@ static void demo_camera(e_rdb_class* i_this) {
|
||||
csXyz i_angle(0, cM_atan2s(sp28.x, sp28.z), 0);
|
||||
sp58 = a_this->current.pos;
|
||||
sp58.y += 2000.0f;
|
||||
fopAcM_create(PROC_E_RD, 12, &sp58, fopAcM_GetRoomNo(a_this), &i_angle, NULL, -1);
|
||||
fopAcM_create(fpcNm_E_RD_e, 12, &sp58, fopAcM_GetRoomNo(a_this), &i_angle, NULL, -1);
|
||||
sp34.set(-7530.0f, 50.0f, -5451.0f);
|
||||
player->setPlayerPosAndAngle(&sp34, -0x5F3B, 0);
|
||||
i_this->mDemoCamCenter.set(-7661.0f, 323.0f, -5684.0f);
|
||||
@@ -1295,7 +1295,7 @@ static void demo_camera(e_rdb_class* i_this) {
|
||||
}
|
||||
|
||||
if (i_this->field_0x10aa >= 40) {
|
||||
e_rd_class* bulblin_p = (e_rd_class*)fopAcM_SearchByName(PROC_E_RD);
|
||||
e_rd_class* bulblin_p = (e_rd_class*)fopAcM_SearchByName(fpcNm_E_RD_e);
|
||||
if (bulblin_p != NULL) {
|
||||
a_this->current.pos = bulblin_p->enemy.current.pos;
|
||||
a_this->eyePos = bulblin_p->enemy.eyePos;
|
||||
@@ -1342,8 +1342,8 @@ static void demo_camera(e_rdb_class* i_this) {
|
||||
if (i_this->field_0x10aa == 180) {
|
||||
sVar1 = 1;
|
||||
fopAcM_delete(a_this);
|
||||
fopAcM_delete(fopAcM_SearchByName(PROC_E_RD));
|
||||
fopAcM_delete(fopAcM_SearchByName(PROC_E_WB));
|
||||
fopAcM_delete(fopAcM_SearchByName(fpcNm_E_RD_e));
|
||||
fopAcM_delete(fopAcM_SearchByName(fpcNm_E_WB_e));
|
||||
dComIfGs_onStageMiddleBoss();
|
||||
int swBit = fopAcM_GetParam(a_this) >> 24;
|
||||
if (swBit != 0xFF) {
|
||||
@@ -1921,18 +1921,18 @@ static actor_method_class l_daE_RDB_Method = {
|
||||
};
|
||||
|
||||
actor_process_profile_definition g_profile_E_RDB = {
|
||||
fpcLy_CURRENT_e, // mLayerID
|
||||
7, // mListID
|
||||
fpcPi_CURRENT_e, // mListPrio
|
||||
PROC_E_RDB, // mProcName
|
||||
&g_fpcLf_Method.base, // sub_method
|
||||
sizeof(e_rdb_class), // mSize
|
||||
0, // mSizeOther
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
156, // mPriority
|
||||
&l_daE_RDB_Method, // sub_method
|
||||
0x00044100, // mStatus
|
||||
fopAc_ENEMY_e, // mActorType
|
||||
fopAc_CULLBOX_CUSTOM_e, // cullType
|
||||
/* Layer ID */ fpcLy_CURRENT_e,
|
||||
/* List ID */ 7,
|
||||
/* List Prio */ fpcPi_CURRENT_e,
|
||||
/* Proc Name */ fpcNm_E_RDB_e,
|
||||
/* Proc SubMtd */ &g_fpcLf_Method.base,
|
||||
/* Size */ sizeof(e_rdb_class),
|
||||
/* Size Other */ 0,
|
||||
/* Parameters */ 0,
|
||||
/* Leaf SubMtd */ &g_fopAc_Method.base,
|
||||
/* Draw Prio */ fpcDwPi_E_RDB_e,
|
||||
/* Actor SubMtd */ &l_daE_RDB_Method,
|
||||
/* Status */ fopAcStts_UNK_0x40000_e | fopAcStts_UNK_0x4000_e | fopAcStts_CULL_e,
|
||||
/* Group */ fopAc_ENEMY_e,
|
||||
/* Cull Type */ fopAc_CULLBOX_CUSTOM_e,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user