Related to Kameck - #2024
Conversation
Report for RMGK01 (fa77cd4 - 7ffdc37)📈 Matched code: 71.66% (+0.11%, +5780 bytes) ✅ 71 new matches
...and 41 more new matches 📈 10 improvements in unmatched items
|
ThatNintendoNerd
left a comment
There was a problem hiding this comment.
First pass of review comments.
ThatNintendoNerd
left a comment
There was a problem hiding this comment.
Please make an effort to employ the constants in your changes, not just add them in uncommented. Obviously, constants with not enough context clues can be left uncommented, but various timing ones are typically easy to insert.
| MR::createKameckBeamHolder(); | ||
| switch (mBeamType) { | ||
| case BeamType_None: | ||
| case 0: |
There was a problem hiding this comment.
Restore BeamType_None to your enumerated type and use it here (and anywhere else a mBeamType value of 0 is checked).
| #pragma once | ||
|
|
||
| #include "Game/LiveActor/LiveActor.hpp" | ||
| #include "Game/Enemy/Kameck.hpp" |
There was a problem hiding this comment.
Should be kept to LiveActor.hpp and forward declare necessary classes from Kameck.hpp instead.
| MR::blendQuatUpFront(&_A0, -mGravity, _B0, 0.04f, 0.2f); | ||
| _90->removeDeadActor(); | ||
| mAnimScaleController->updateNerve(); | ||
| MR::blendQuatUpFront(&_A0, -mGravity, _B0, ::sUpVecBlendRate, ::sFrontVecBlendRate); |
There was a problem hiding this comment.
_B0 could be named mFrontVec.
| // const f32 sDefaultActiveDistance = | ||
| const f32 sFrontVecBlendRate = 0.2f; | ||
| const f32 sUpVecBlendRate = 0.04f; | ||
| // const f32 sTurnPlayerLimit = |
There was a problem hiding this comment.
Seems like uses of 0.98f imply this constant.
| }; // namespace NrvKameckBeam | ||
|
|
||
| KameckBeam::KameckBeam(const char* pName) | ||
| : LiveActor(pName), mEventListener(nullptr), mKameckTurtle(), _A0(), _A4(0, 0, 1), mWandLocalPosition(0, 0, 0), mBeamKind(BeamType_FireBall1) { |
There was a problem hiding this comment.
mEventListener can be default-initialized accordingly with an empty pair of parentheses.
| easeInOut = 1.0f - MR::calcNerveEaseInOutRate(this, 200, 400); | ||
| } | ||
| MR::addVelocityMoveToDirection(this, _B0, 0.5f * easeInOut); | ||
| MR::rotateDirectionGravityDegree(this, &_A4, -25.0f * easeInOut); |
There was a problem hiding this comment.
::sRunSpinDegree?
| if (!isNerve(&NrvKameckTurtle::KameckTurtleNrvRun::sInstance)) { | ||
| return false; | ||
| } | ||
| if (MR::isLessStep(this, 300)) { |
There was a problem hiding this comment.
::sEnableAttackTime?
| if (!MR::normalizeOrZero(&dir)) { | ||
| _B0.set(dir); | ||
| } | ||
| MR::addVelocityJump(this, 15.0f); |
| MR::addVelocityToGravity(this, 0.7f); | ||
| } | ||
| f32 easeInOut = 1.0f; | ||
| if (MR::isGreaterStep(this, 200)) { |
There was a problem hiding this comment.
::sDeccelStartTime ?
| MR::startLevelSound(this, "SE_EM_LV_TURTLE_SLIDE"); | ||
| } | ||
| if (!MR::isBindedGround(this)) { | ||
| MR::addVelocityToGravity(this, 0.7f); |
No description provided.