improve khCaveResult.cpp

modulo
This commit is contained in:
EpochFlame 2024-04-19 19:20:50 -04:00
parent dafed4662f
commit 1af9c4af2d
3 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@
### <section id="plugProjectKonoU">plugProjectKonoU</section>
| File | Size (bytes) | File | Size (bytes) |
| ---- | ---- | ---- | ---- |
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKonoU/khCaveResult.cpp">khCaveResult.cpp</a> | 45925 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKonoU/khFinalResult.cpp">khFinalResult.cpp</a> | 66534 |
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKonoU/khCaveResult.cpp">khCaveResult.cpp</a> | 45937 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKonoU/khFinalResult.cpp">khFinalResult.cpp</a> | 66534 |
| <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKonoU/khDayEndResult.cpp">khDayEndResult.cpp</a> | 110705 | <a href="https://github.com/projectPiki/pikmin2/tree/main/src/plugProjectKonoU/khWorldMap.cpp">khWorldMap.cpp</a> | 199462 |
### <section id="plugProjectMorimuraU">plugProjectMorimuraU</section>

View File

@ -40,7 +40,7 @@ struct LostItemMgr {
LostItem* mItemList; // _00
int mMaxPanes; // _04
u32 mFlags; // _08
s32 mFlags; // _08
};
} // namespace Screen

View File

@ -1218,7 +1218,7 @@ void ObjCaveResult::statusForceScroll()
mOtakaraCount++;
}
if (node->mPokoValue > 0 || !node->mLostNum) {
mCavePokos += node->mPokoValue;
mCavePokos += node->mTotalPokos;
}
PSSystem::spSysIF->playSystemSe(PSSE_SY_COIN_COUNT, 0);
}
@ -1231,7 +1231,7 @@ void ObjCaveResult::statusForceScroll()
FOREACH_NODE(Game::Result::TNode, mResultNode->mChild, cNode)
{
if (i == mScrollSelIndex + 2 && ((cNode->mItemMgr->mFlags & LOSTITEM_Unk1) != 1)) {
cNode->mItemMgr->init(pos, i >> 7);
cNode->mItemMgr->init(pos, i % 2); // is i odd
}
i++;
}