mirror of
https://github.com/zeldaret/tp
synced 2026-06-04 02:47:02 -04:00
d_a_bd Matching (#2560)
* Matching daPoFire * Adressed comments * Matching text * Some cleanup * Adressed review comments, added CUT_TYPE_NONE in cut type enum
This commit is contained in:
+1088
-1194
File diff suppressed because it is too large
Load Diff
@@ -1045,7 +1045,7 @@ static int daE_HZELDA_Execute(e_hzelda_class* i_this) {
|
||||
BOOL on_player_at_sph = FALSE;
|
||||
|
||||
if (daPy_py_c::checkMasterSwordEquip()) {
|
||||
if (daPy_getPlayerActorClass()->getCutType() != 0) {
|
||||
if (daPy_getPlayerActorClass()->getCutType() != daPy_py_c::CUT_TYPE_NONE) {
|
||||
i_this->mSwordAtTimer++;
|
||||
if (i_this->mSwordAtTimer < 6) {
|
||||
on_player_at_sph = TRUE;
|
||||
|
||||
@@ -354,7 +354,7 @@ int daE_OC_c::searchPlayerShakeHead() {
|
||||
int daE_OC_c::searchSound() {
|
||||
if (field_0x6b4 == 2 && mpBridge && mpBridge->getPlayerRide())
|
||||
return 0;
|
||||
if (daPy_getPlayerActorClass()->getCutType() != 0 && fopAcM_searchPlayerDistance(this) < mPlayerRange) {
|
||||
if (daPy_getPlayerActorClass()->getCutType() != daPy_py_c::CUT_TYPE_NONE && fopAcM_searchPlayerDistance(this) < mPlayerRange) {
|
||||
field_0x67c = dComIfGp_getPlayer(0)->current.pos;
|
||||
setActionMode(8, 0);
|
||||
return 1;
|
||||
|
||||
@@ -147,7 +147,7 @@ static void e_tk_ball_move(e_tk_ball_class* i_this) {
|
||||
if (i_this->mTgSph.ChkTgHit() || i_this->mAtSph.ChkAtShieldHit()) {
|
||||
impact_eff_set(i_this);
|
||||
actor->current.angle.x *= -1;
|
||||
if (actor_lockon && daPy_getPlayerActorClass()->getCutType() != 0x00) {
|
||||
if (actor_lockon && daPy_getPlayerActorClass()->getCutType() != daPy_py_c::CUT_TYPE_NONE) {
|
||||
i_this->mAction = ACT_TK_BALL_RETURN;
|
||||
i_this->mMode = MODE_TK_BALL_INIT;
|
||||
actor->current.angle.y -= 0x8000;
|
||||
@@ -168,7 +168,7 @@ static void e_tk_ball_move(e_tk_ball_class* i_this) {
|
||||
i_this->mInitalDistance = direction_vec.abs();
|
||||
speed_vec.x = 0.0;
|
||||
speed_vec.y = 0.0;
|
||||
if (daPy_getPlayerActorClass()->getCutType() != 0x00) {
|
||||
if (daPy_getPlayerActorClass()->getCutType() != daPy_py_c::CUT_TYPE_NONE) {
|
||||
speed_vec.z = 60.0f;
|
||||
}
|
||||
cMtx_YrotS(*calc_mtx, actor->current.angle.y);
|
||||
|
||||
@@ -134,7 +134,7 @@ static void damage_check(e_yd_class* i_this) {
|
||||
j = i_this->field_0xff4.mpCollider->ChkAtType(AT_TYPE_BOMB | AT_TYPE_40);
|
||||
if (j != 0 || i_this->field_0x66e == 6) {
|
||||
at_power_check(&i_this->field_0xff4);
|
||||
if (daPy_getPlayerActorClass()->getCutType() != 0) {
|
||||
if (daPy_getPlayerActorClass()->getCutType() != daPy_py_c::CUT_TYPE_NONE) {
|
||||
cVar6 = 1;
|
||||
} else {
|
||||
cVar6 = 2;
|
||||
|
||||
@@ -50,7 +50,7 @@ static void daKytag12_light_swprd_proc(kytag12_class* i_this) {
|
||||
daPy_py_c* player = (daPy_py_c*)dComIfGp_getPlayer(0);
|
||||
|
||||
if (dComIfGs_getSelectEquipSword() == fpcNm_ITEM_LIGHT_SWORD) {
|
||||
if (player->getCutType() != 0) {
|
||||
if (player->getCutType() != daPy_py_c::CUT_TYPE_NONE) {
|
||||
if (i_this->field_0x576 == 0) {
|
||||
cXyz sp28(player->current.pos);
|
||||
sp28.y -= 100.0f;
|
||||
@@ -878,7 +878,7 @@ static int daKytag12_Execute_R00(kytag12_class* i_this) {
|
||||
sp80.y = player->current.pos.y;
|
||||
|
||||
if (player->current.pos.abs(sp80) < 600.0f &&
|
||||
dComIfGs_getSelectEquipSword() == fpcNm_ITEM_LIGHT_SWORD && player->getCutType() != 0 &&
|
||||
dComIfGs_getSelectEquipSword() == fpcNm_ITEM_LIGHT_SWORD && player->getCutType() != daPy_py_c::CUT_TYPE_NONE &&
|
||||
d_kytag12_cut_turn_check())
|
||||
{
|
||||
i_this->field_0x575 = 1;
|
||||
|
||||
Reference in New Issue
Block a user