Skip to content

d_a_e_rdb (King Bulblin) work#2452

Merged
TakaRikka merged 6 commits intozeldaret:mainfrom
carter-ktb21:d_a_e_rdb
May 27, 2025
Merged

d_a_e_rdb (King Bulblin) work#2452
TakaRikka merged 6 commits intozeldaret:mainfrom
carter-ktb21:d_a_e_rdb

Conversation

@carter-ktb21
Copy link
Copy Markdown
Contributor

No description provided.

@decomp-dev
Copy link
Copy Markdown

decomp-dev bot commented May 22, 2025

Report for GZ2E01 (0e35bbd - 2fd3fea)

📈 Matched code: 61.62% (+0.11%, +12180 bytes)

d_a_e_rdb/d/actor/d_a_e_rdb | daE_RDB_HIO_c::daE_RDB_HIO_c() +33 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | anm_init(e_rdb_class*, int, float, unsigned char, float) +169 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | nodeCallBack(J3DJoint*, int) +373 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | daE_RDB_Draw(e_rdb_class*) +745 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | mtx_to_posAngle(float(*)[4], cXyz*, csXyz*) +57 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | player_way_check(e_rdb_class*) +57 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_wait(e_rdb_class*) +613 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_fight(e_rdb_class*) +436 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | getPolyColor(cBgS_PolyInfo&, int, _GXColor*, _GXColor*, unsigned char*, float*) +213 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_attack(e_rdb_class*) +765 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_spin_attack(e_rdb_class*) +789 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_defence(e_rdb_class*) +265 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_damage(e_rdb_class*) +796 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_end(e_rdb_class*) +1124 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_start(e_rdb_class*) +917 bytes -> 100.00%
📈 d_a_e_rdb/d/actor/d_a_e_rdb | damage_check(e_rdb_class*) +1223 bytes -> 98.36%
d_a_e_rdb/d/actor/d_a_e_rdb | shot_s_sub(void*, void*) +400 bytes -> 100.00%
📈 d_a_e_rdb/d/actor/d_a_e_rdb | action(e_rdb_class*) +2206 bytes -> 99.70%
d_a_e_rdb/d/actor/d_a_e_rdb | cam_3d_morf(e_rdb_class*, float) +225 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | cam_spd_set(e_rdb_class*) +156 bytes -> 100.00%
📈 d_a_e_rdb/d/actor/d_a_e_rdb | demo_camera(e_rdb_class*) +3383 bytes -> 99.99%
d_a_e_rdb/d/actor/d_a_e_rdb | anm_se_set(e_rdb_class*) +1937 bytes -> 100.00%
📈 d_a_e_rdb/d/actor/d_a_e_rdb | daE_RDB_Execute(e_rdb_class*) +4308 bytes -> 99.36%
d_a_e_rdb/d/actor/d_a_e_rdb | daE_RDB_Delete(e_rdb_class*) +101 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | useHeapInit(fopAc_ac_c*) +368 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | daE_RDB_Create(fopAc_ac_c*) +1036 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | e_rdb_class::e_rdb_class() +390 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | cM3dGSph::~cM3dGSph() +69 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | cM3dGCyl::~cM3dGCyl() +69 bytes -> 100.00%
d_a_e_rdb/d/actor/d_a_e_rdb | cM3dGAab::~cM3dGAab() +69 bytes -> 100.00%
...and 12 more items

Comment on lines +183 to +193
} else {
if (i_this->mDistToPlayer < fVar1 && i_this->field_0x6b8[0] == 0) {
if (i_this->field_0xfcc >= 2 && strcmp(dComIfGp_getStartStageName(), "D_MN09") == 0) {
i_this->mAction = 4;
} else {
i_this->mAction = 3;
}

i_this->mMode = 0;
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be condensed into an else if

Comment on lines +209 to +218
if (i_this->mDistToPlayer > 700.0f) {
anm_init(i_this, 64, 10.0f, 2, 1.0f);
}
} else {
fVar1 = 10.0f;
if (i_this->mDistToPlayer < 600.0f) {
i_this->field_0x5cc = 3.0f;
anm_init(i_this, 70, 10.0f, 2, i_this->field_0x5cc);
fVar1 = 3.0f;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation needs fixing

// NONMATCHING
static u16 ap_name_4291[3] = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the _4219 part can be removed from the name

// NONMATCHING
static u16 ap_name_4373[2] = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the _4373 part of the name can be removed

Comment on lines +19 to +28
enum e_rdb_ACTION {
ACT_START,
ACT_WAIT,
ACT_FIGHT,
ACT_ATTACK,
ACT_SPIN_ATTACK,
ACT_DEFENCE,
ACT_DAMAGE,
ACT_END,
};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i'd prefer this outside of the class definition since it just feels more appropriate for c-style actors imo

fopAcM_delete(fopAcM_SearchByName(PROC_E_RD));
fopAcM_delete(fopAcM_SearchByName(PROC_E_WB));
dComIfGs_onStageMiddleBoss();
int i_no = fopAcM_GetParam(a_this) >> 24;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd use the name swbit for the first parameter of onSwitch

@TakaRikka TakaRikka merged commit c94fe22 into zeldaret:main May 27, 2025
1 check passed
@ItsNiklas ItsNiklas mentioned this pull request May 27, 2025
meintte pushed a commit to meintte/tp that referenced this pull request May 28, 2025
* Started on d_a_e_rdb

* Small work on damage_check

* Work on demo_camera and started on execute function

* All functions worked on

* PR cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants