Skip to content

nearly match CocoNutBall#1895

Merged
ThatNintendoNerd merged 10 commits intoSMGCommunity:masterfrom
Gonzalo-kebab:master
Mar 3, 2026
Merged

nearly match CocoNutBall#1895
ThatNintendoNerd merged 10 commits intoSMGCommunity:masterfrom
Gonzalo-kebab:master

Conversation

@Gonzalo-kebab
Copy link
Contributor

No description provided.

@decomp-dev
Copy link

decomp-dev bot commented Feb 16, 2026

Report for RMGK01 (b928703 - 1fcdc89)

📈 Matched code: 46.35% (+0.08%, +4372 bytes)
📈 Matched data: 21.33% (+0.00%, +28 bytes)

✅ 37 new matches
Unit Item Bytes Before After
main/Game/Enemy/CocoNutBall CocoNutBall::attackSensor(HitSensor*, HitSensor*) +476 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::exeHitBackToHost() +356 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::calcHitBackDstPos(JGeometry::TVec3<float>*, bool, bool) +272 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::processApproachToPlayer() +248 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::exeRebound() +244 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::isValidReceivePunch() const +216 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::tryToKill(bool) +200 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::CocoNutBall(const char*) +188 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::kill() +176 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::isHitBackRight() const +176 0.00% 100.00%
main/JSystem/JParticle/JPAParticle JGeometry::TVec3<float>::setLength(const JGeometry::TVec3<float>&, float) +176 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::receiveMsgPlayerAttack(unsigned long, HitSensor*, HitSensor*) +168 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::isHitBackFront() const +168 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::hitBackToPlayer() +164 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::appearAndThrow(const JGeometry::TVec3<float>&, float) +144 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::demoBreak(const JGeometry::TVec3<float>&) +140 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::exeHitBackToPlayer() +140 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::isBindedAny() const +124 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::exeFreezeRelease() +116 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::calcAndSetBaseMtx() +104 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::freeze() +84 0.00% 100.00%
main/Game/Enemy/CocoNutBall __sinit_\CocoNutBall_cpp +76 0.00% 100.00%
main/Game/Enemy/CocoNutBall CocoNutBall::appear() +72 0.00% 100.00%
main/Game/Enemy/CocoNutBall .sbss +24 0.00% 100.00%
main/Game/Enemy/CocoNutBall NrvCocoNutBall::CocoNutBallNrvThrow::CocoNutBallNrvThrow() +16 0.00% 100.00%
main/Game/Enemy/CocoNutBall NrvCocoNutBall::CocoNutBallNrvHitBackToHost::CocoNutBallNrvHitBackToHost() +16 0.00% 100.00%
main/Game/Enemy/CocoNutBall NrvCocoNutBall::CocoNutBallNrvHitBackToPlayer::CocoNutBallNrvHitBackToPlayer() +16 0.00% 100.00%
main/Game/Enemy/CocoNutBall NrvCocoNutBall::CocoNutBallNrvRebound::CocoNutBallNrvRebound() +16 0.00% 100.00%
main/Game/Enemy/CocoNutBall NrvCocoNutBall::CocoNutBallNrvFreeze::CocoNutBallNrvFreeze() +16 0.00% 100.00%
main/Game/Enemy/CocoNutBall NrvCocoNutBall::CocoNutBallNrvFreezeRelease::CocoNutBallNrvFreezeRelease() +16 0.00% 100.00%

...and 7 more new matches

📈 9 improvements in unmatched items
Unit Item Bytes Before After
main/Game/Enemy/CocoNutBall CocoNutBall::setVelocityToPlayer(float, float) +731 0.00% 95.79%
main/Game/Enemy/CocoNutBall CocoNutBall::exeFreeze() +567 0.00% 99.96%
main/Game/Enemy/CocoNutBall CocoNutBall::calcHitBackVelocitAndGravity() +470 0.00% 87.81%
main/Game/Enemy/CocoNutBall CocoNutBall::init(const JMapInfoIter&) +316 0.00% 91.95%
main/Game/Enemy/CocoNutBall CocoNutBall::exeThrow() +159 0.00% 99.88%
main/Game/Enemy/CocoNutBall .sdata2 +139 0.00% 97.14%
main/Game/Enemy/CocoNutBall .data +97 0.00% 22.07%
main/Game/Enemy/CocoNutBall .rodata +24 0.00% 77.78%
main/Game/Enemy/CocoNutBall .sdata +7 0.00% 93.33%

Copy link
Collaborator

@ThatNintendoNerd ThatNintendoNerd left a comment

Choose a reason for hiding this comment

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

Please run clang-format on your changes.

}

TRot3f rotate;
f32 angle = 0.017453292f * f2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use PI_180 from math_types.hpp instead of a magic number.

@@ -0,0 +1,54 @@
#include "Game/LiveActor/LiveActor.hpp"
#include "Game/Util/JMapInfo.hpp"
Copy link
Collaborator

Choose a reason for hiding this comment

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

LiveActor.hpp includes NameObj.hpp which already includes JMapInfo.hpp, so this include statement is unnecessary.

@Gonzalo-kebab
Copy link
Contributor Author

requested changes should have been adressed

@ThatNintendoNerd ThatNintendoNerd merged commit 1b39425 into SMGCommunity:master Mar 3, 2026
1 check passed
Frityet pushed a commit to Frityet/Petari that referenced this pull request Mar 12, 2026
* update CocoNutBall splits

* match 97% of CocoNutBall.cpp

* fix regressions

* clean up includes and use math constant

* removed too many includes

* improve formatting
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