Documentation, cleanup

This commit is contained in:
robojumper
2025-12-05 12:52:22 +01:00
parent 83a1e0256e
commit 17c3ad4bb0
6 changed files with 226 additions and 217 deletions
+3 -3
View File
@@ -71,8 +71,8 @@ int dTgSwordBattleGame_c::actorExecuteInEvent() {
dLytMiniGame_c::GetInstance()->startCountdown();
} else if (dLytMiniGame_c::GetInstance()->isStartCountdownDone()) {
dLytMiniGame_c::GetInstance()->timeRelatedExecute();
dLytMiniGame_c::GetInstance()->setHighscore(getBossHighscore());
dLytMiniGame_c::GetInstance()->timeRelatedInit();
dLytMiniGame_c::GetInstance()->setBestTime(getBossHighscore());
dLytMiniGame_c::GetInstance()->setShowBestTime(true);
mTimer.initUpCounter();
field_0x1A8 = true;
@@ -113,7 +113,7 @@ int dTgSwordBattleGame_c::actorExecuteInEvent() {
setCurrentBossNumber(mBossNumber + 1);
if (MinigameManager::endMinigame(MinigameManager::BOSS_RUSH)) {
dLytMiniGame_c::GetInstance()->startFinish();
dLytMiniGame_c::GetInstance()->timeRelated();
dLytMiniGame_c::GetInstance()->endTimeResult();
}
}
} break;
+55 -55
View File
@@ -480,17 +480,17 @@ bool dFlow_c::handleEventInternal(const MsbFlowInfo *element) {
break;
}
case EVENT_LYT_MINI_GAME: {
if (dMessage_c::getInstance()->getField_0x340() != 0) {
// cancel something minigame related if running
if (dMessage_c::getInstance()->hasSetMinigameResult()) {
// clear old result
clearMinigame();
}
// start something minigame related
// create new result
dMessage_c::getInstance()->setMiniGameVariant(params1n2);
createLytMiniGame();
break;
}
case EVENT_LYT_MINI_GAME_END:
// cancel something minigame related
// hide score/time
clearMinigame();
break;
case EVENT_46: dMessage_c::getInstance()->setField_0x344(params1n2); break;
@@ -1193,51 +1193,51 @@ void dFlow_c::clear() {
void dFlow_c::createLytMiniGame() {
if (dLytMiniGame_c::GetInstance() == nullptr) {
switch (dMessage_c::getInstance()->getMiniGameVariant()) {
case 0:
case dMessage_c::MG_THRILL_DIGGER:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_11,
fBase_c::OTHER
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(),
dLytMiniGame_c::VARIANT_THRILL_DIGGER_RESULT, fBase_c::OTHER
);
break;
case 1:
case dMessage_c::MG_BAMBOO_CUTTING:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_10,
fBase_c::OTHER
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(),
dLytMiniGame_c::VARIANT_BAMBOO_CUTTING_RESULT, fBase_c::OTHER
);
break;
case 2:
case dMessage_c::MG_INSECT_CAPTURE:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_12,
fBase_c::OTHER
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(),
dLytMiniGame_c::VARIANT_INSECT_CAPTURE_RESULT, fBase_c::OTHER
);
break;
case 3:
case dMessage_c::MG_ROLLERCOASTER:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_14,
fBase_c::OTHER
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(),
dLytMiniGame_c::VARIANT_ROLLERCOASTER_RESULT, fBase_c::OTHER
);
break;
case 4:
case dMessage_c::MG_PUMPKIN_ARCHERY:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_13,
fBase_c::OTHER
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(),
dLytMiniGame_c::VARIANT_PUMPKIN_ARCHERY_RESULT, fBase_c::OTHER
);
break;
case 5:
case dMessage_c::MG_FUN_FUN_ISLAND:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_FUN_FUN_ISLAND,
fBase_c::OTHER
);
break;
case 6:
case dMessage_c::MG_TRIAL_TIME_ATTACK:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_16,
fBase_c::OTHER
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(),
dLytMiniGame_c::VARIANT_TRIAL_TIME_ATTACK_RESULT, fBase_c::OTHER
);
break;
case 7:
case dMessage_c::MG_BOSS_RUSH:
dBase_c::createBase(
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_15,
fProfile::LYT_MINI_GAME, dLytControlGame_c::getInstance(), dLytMiniGame_c::VARIANT_BOSS_RUSH_RESULT,
fBase_c::OTHER
);
break;
@@ -1246,28 +1246,28 @@ void dFlow_c::createLytMiniGame() {
}
void dFlow_c::clearMinigame() {
if (dMessage_c::getInstance()->getField_0x340()) {
if (dMessage_c::getInstance()->hasSetMinigameResult()) {
switch (dMessage_c::getInstance()->getMiniGameVariant()) {
case 0:
case 1:
case 4:
case 5:
case dMessage_c::MG_THRILL_DIGGER:
case dMessage_c::MG_BAMBOO_CUTTING:
case dMessage_c::MG_PUMPKIN_ARCHERY:
case dMessage_c::MG_FUN_FUN_ISLAND:
if (dLytMiniGame_c::GetInstance() != nullptr) {
dLytMiniGame_c::GetInstance()->scoreRelated();
dLytMiniGame_c::GetInstance()->endScoreResult();
}
break;
case 2:
case 3:
case 6:
case 7:
case dMessage_c::MG_INSECT_CAPTURE:
case dMessage_c::MG_ROLLERCOASTER:
case dMessage_c::MG_TRIAL_TIME_ATTACK:
case dMessage_c::MG_BOSS_RUSH:
if (dLytMiniGame_c::GetInstance() != nullptr) {
dLytMiniGame_c::GetInstance()->timeRelated();
dLytMiniGame_c::GetInstance()->endTimeResult();
}
break;
}
}
dMessage_c::getInstance()->setField_0x340(0);
dMessage_c::getInstance()->setMiniGameVariant(8);
dMessage_c::getInstance()->setHasSetMinigameResult(false);
dMessage_c::getInstance()->setMiniGameVariant(dMessage_c::MG_NONE);
}
SPECIAL_BASE_PROFILE(MESSAGE, dMessage_c, fProfile::MESSAGE, 0x2A8, 0);
@@ -1755,29 +1755,29 @@ void dMessage_c::clearLightPillarRelatedArgs() {
}
void dMessage_c::executeMinigame() {
if (mMiniGameVariant == 8) {
if (mMinigameVariant == MG_NONE) {
return;
}
if (!dMessage_c::getInstance()->getField_0x340()) {
switch (mMiniGameVariant) {
case 0:
case 1:
case 4:
case 5:
if (!dMessage_c::getInstance()->hasSetMinigameResult()) {
switch (mMinigameVariant) {
case MG_THRILL_DIGGER:
case MG_BAMBOO_CUTTING:
case MG_PUMPKIN_ARCHERY:
case MG_FUN_FUN_ISLAND:
if (dLytMiniGame_c::GetInstance() != nullptr) {
dLytMiniGame_c::GetInstance()->scoreRelatedExecute();
dLytMiniGame_c::GetInstance()->scoreRelatedInit();
dLytMiniGame_c::GetInstance()->setDisplayedPoints(mMinigameResultPoints);
sInstance->field_0x340 = 1;
sInstance->mHasSetMinigameResult = true;
}
break;
case 2:
case 3:
case 6:
case 7:
case MG_INSECT_CAPTURE:
case MG_ROLLERCOASTER:
case MG_TRIAL_TIME_ATTACK:
case MG_BOSS_RUSH:
if (dLytMiniGame_c::GetInstance() != nullptr) {
dLytMiniGame_c::GetInstance()->timeRelatedExecute();
dLytMiniGame_c::GetInstance()->timeRelatedInit();
dLytMiniGame_c::GetInstance()->setDisplayedTime(mMinigameTime);
sInstance->field_0x340 = 1;
sInstance->mHasSetMinigameResult = true;
}
break;
}
@@ -1796,8 +1796,8 @@ void dMessage_c::init() {
void dMessage_c::reset() {
init();
mMiniGameVariant = 8;
field_0x340 = 0;
mMinigameVariant = MG_NONE;
mHasSetMinigameResult = false;
mMinigameResultPoints = 0;
mMinigameTime = 0;
}
+96 -96
View File
@@ -854,14 +854,14 @@ bool dLytMiniGameTime_c::execute() {
if (isAlphaInEndReached()) {
stopAlphaIn();
if (field_0x7EE) {
if (mResultMode) {
startLoop();
}
}
if (isAlphaOutEndReached()) {
stopAlphaOut();
if (field_0x7EE) {
if (mResultMode) {
stopLoop();
resetLoop();
}
@@ -1919,7 +1919,7 @@ bool dLytMiniGameScore_c::execute() {
if (mIsVisible) {
fn_80291BC0();
if (!field_0x816) {
if (!mResultMode) {
switch (mVariant) {
case SCORE_VARIANT_BAMBOO_CUTTING:
if (hasIncreasedScore()) {
@@ -1969,14 +1969,14 @@ bool dLytMiniGameScore_c::execute() {
if (isAlphaInEndReached()) {
stopAlphaIn();
if (field_0x816) {
if (mResultMode) {
startLoop();
}
}
if (isAlphaOutEndReached()) {
stopAlphaOut();
if (field_0x816) {
if (mResultMode) {
stopLoop();
resetLoop();
}
@@ -2001,7 +2001,7 @@ bool dLytMiniGameScore_c::execute() {
mLyt.calc();
}
if (!field_0x816 && mVariant == SCORE_VARIANT_BAMBOO_CUTTING && hasIncreasedScore()) {
if (!mResultMode && mVariant == SCORE_VARIANT_BAMBOO_CUTTING && hasIncreasedScore()) {
dSndSmallEffectMgr_c::GetInstance()->playMinigameScoreUpSound(mScore);
}
@@ -3381,7 +3381,7 @@ int dLytMiniGame_c::create() {
mStart.build(&mResAccStart);
break;
}
case VARIANT_10: {
case VARIANT_BAMBOO_CUTTING_RESULT: {
if (loadData(sMiniGameScore, SLOT_MINI_GAME_SCORE)) {
return NOT_READY;
}
@@ -3390,11 +3390,11 @@ int dLytMiniGame_c::create() {
}
attachLoadedData(sMiniGameScore, mResAccScore);
mScore.setVariant(dLytMiniGameScore_c::SCORE_VARIANT_BAMBOO_CUTTING);
mScore.setField_0x816(true);
mScore.setResultMode(true);
mScore.build(&mResAccScore);
break;
}
case VARIANT_11: {
case VARIANT_THRILL_DIGGER_RESULT: {
if (loadData(sMiniGameScore, SLOT_MINI_GAME_SCORE)) {
return NOT_READY;
}
@@ -3403,11 +3403,11 @@ int dLytMiniGame_c::create() {
}
attachLoadedData(sMiniGameScore, mResAccScore);
mScore.setVariant(dLytMiniGameScore_c::SCORE_VARIANT_THRILL_DIGGER);
mScore.setField_0x816(true);
mScore.setResultMode(true);
mScore.build(&mResAccScore);
break;
}
case VARIANT_12: {
case VARIANT_INSECT_CAPTURE_RESULT: {
if (loadData(sMiniGameTime, SLOT_MINI_GAME_TIME)) {
return NOT_READY;
}
@@ -3416,11 +3416,11 @@ int dLytMiniGame_c::create() {
}
attachLoadedData(sMiniGameTime, mResAccTime);
mTime.setVariant(dLytMiniGameTime_c::TIME_VARIANT_INSECT_CAPTURE);
mTime.setField_0x7EE(true);
mTime.setResultMode(true);
mTime.build(&mResAccTime);
break;
}
case VARIANT_13: {
case VARIANT_PUMPKIN_ARCHERY_RESULT: {
if (loadData(sMiniGameScore, SLOT_MINI_GAME_SCORE)) {
return NOT_READY;
}
@@ -3429,11 +3429,11 @@ int dLytMiniGame_c::create() {
}
attachLoadedData(sMiniGameScore, mResAccScore);
mScore.setVariant(dLytMiniGameScore_c::SCORE_VARIANT_PUMPKIN_ARCHERY);
mScore.setField_0x816(true);
mScore.setResultMode(true);
mScore.build(&mResAccScore);
break;
}
case VARIANT_14: {
case VARIANT_ROLLERCOASTER_RESULT: {
if (loadData(sMiniGameTime, SLOT_MINI_GAME_TIME)) {
return NOT_READY;
}
@@ -3442,11 +3442,11 @@ int dLytMiniGame_c::create() {
}
attachLoadedData(sMiniGameTime, mResAccTime);
mTime.setVariant(dLytMiniGameTime_c::TIME_VARIANT_ROLLERCOASTER);
mTime.setField_0x7EE(true);
mTime.setResultMode(true);
mTime.build(&mResAccTime);
break;
}
case VARIANT_15: {
case VARIANT_BOSS_RUSH_RESULT: {
if (loadData(sMiniGameTime, SLOT_MINI_GAME_TIME)) {
return NOT_READY;
}
@@ -3455,11 +3455,11 @@ int dLytMiniGame_c::create() {
}
attachLoadedData(sMiniGameTime, mResAccTime);
mTime.setVariant(dLytMiniGameTime_c::TIME_VARIANT_BOSS_RUSH);
mTime.setField_0x7EE(true);
mTime.setResultMode(true);
mTime.build(&mResAccTime);
break;
}
case VARIANT_16: {
case VARIANT_TRIAL_TIME_ATTACK_RESULT: {
if (loadData(sMiniGameTime, SLOT_MINI_GAME_TIME)) {
return NOT_READY;
}
@@ -3468,7 +3468,7 @@ int dLytMiniGame_c::create() {
}
attachLoadedData(sMiniGameTime, mResAccTime);
mTime.setVariant(dLytMiniGameTime_c::TIME_VARIANT_TRIAL_TIME_ATTACK);
mTime.setField_0x7EE(true);
mTime.setResultMode(true);
mTime.build(&mResAccTime);
break;
}
@@ -3562,37 +3562,37 @@ int dLytMiniGame_c::doDelete() {
unloadData(sMiniGameTime);
break;
}
case VARIANT_10: {
case VARIANT_BAMBOO_CUTTING_RESULT: {
mResAccScore.detach();
unloadData(sMiniGameScore);
break;
}
case VARIANT_11: {
case VARIANT_THRILL_DIGGER_RESULT: {
mResAccScore.detach();
unloadData(sMiniGameScore);
break;
}
case VARIANT_12: {
case VARIANT_INSECT_CAPTURE_RESULT: {
mResAccTime.detach();
unloadData(sMiniGameTime);
break;
}
case VARIANT_13: {
case VARIANT_PUMPKIN_ARCHERY_RESULT: {
mResAccScore.detach();
unloadData(sMiniGameScore);
break;
}
case VARIANT_14: {
case VARIANT_ROLLERCOASTER_RESULT: {
mResAccTime.detach();
unloadData(sMiniGameTime);
break;
}
case VARIANT_15: {
case VARIANT_BOSS_RUSH_RESULT: {
mResAccTime.detach();
unloadData(sMiniGameTime);
break;
}
case VARIANT_16: {
case VARIANT_TRIAL_TIME_ATTACK_RESULT: {
mResAccTime.detach();
unloadData(sMiniGameTime);
break;
@@ -3606,21 +3606,21 @@ int dLytMiniGame_c::doDelete() {
int dLytMiniGame_c::execute() {
switch (mVariant) {
case VARIANT_BAMBOO_CUTTING:
case VARIANT_10: fn_80295F90(); break;
case VARIANT_FUN_FUN_ISLAND: fn_80296000(); break;
case VARIANT_BAMBOO_CUTTING_RESULT: executeBambooCutting(); break;
case VARIANT_FUN_FUN_ISLAND: executeFunFunIsland(); break;
case VARIANT_THRILL_DIGGER:
case VARIANT_11: fn_80296070(); break;
case VARIANT_THRILL_DIGGER_RESULT: executeThrillDigger(); break;
case VARIANT_INSECT_CAPTURE:
case VARIANT_12: fn_80296150(); break;
case VARIANT_SPIRAL_CHARGE_TUTORIAL: fn_80296210(); break;
case VARIANT_INSECT_CAPTURE_RESULT: executeInsectCapture(); break;
case VARIANT_SPIRAL_CHARGE_TUTORIAL: executeSpiralChargeTutorial(); break;
case VARIANT_PUMPKIN_ARCHERY:
case VARIANT_13: fn_802962A0(); break;
case VARIANT_PUMPKIN_ARCHERY_RESULT: executePumpkinArchery(); break;
case VARIANT_ROLLERCOASTER:
case VARIANT_14: fn_80296330(); break;
case VARIANT_ROLLERCOASTER_RESULT: executeRollercoaster(); break;
case VARIANT_BOSS_RUSH:
case VARIANT_15: fn_802963E0(); break;
case VARIANT_BOSS_RUSH_RESULT: executeBossRush(); break;
case VARIANT_TRIAL_TIME_ATTACK:
case VARIANT_16: fn_80296480(); break;
case VARIANT_TRIAL_TIME_ATTACK_RESULT: executeTrialTimeAttack(); break;
}
mScore.execute();
@@ -3650,7 +3650,7 @@ int dLytMiniGame_c::draw() {
return SUCCEEDED;
}
void dLytMiniGame_c::scoreRelatedExecute() {
void dLytMiniGame_c::scoreRelatedInit() {
switch (mVariant) {
case VARIANT_BAMBOO_CUTTING:
case VARIANT_THRILL_DIGGER:
@@ -3664,13 +3664,13 @@ void dLytMiniGame_c::scoreRelatedExecute() {
mScore.setField_0x828(false);
}
break;
case VARIANT_10:
case VARIANT_11:
case VARIANT_13: mScore.startAlphaIn();
case VARIANT_BAMBOO_CUTTING_RESULT:
case VARIANT_THRILL_DIGGER_RESULT:
case VARIANT_PUMPKIN_ARCHERY_RESULT: mScore.startAlphaIn();
}
}
void dLytMiniGame_c::scoreRelated() {
void dLytMiniGame_c::endScoreResult() {
switch (mVariant) {
case VARIANT_FUN_FUN_ISLAND:
if (fn_80295DB0()) {
@@ -3679,9 +3679,9 @@ void dLytMiniGame_c::scoreRelated() {
mScore.startOut();
}
break;
case VARIANT_10:
case VARIANT_11:
case VARIANT_13: mScore.startAlphaOut(); break;
case VARIANT_BAMBOO_CUTTING_RESULT:
case VARIANT_THRILL_DIGGER_RESULT:
case VARIANT_PUMPKIN_ARCHERY_RESULT: mScore.startAlphaOut(); break;
}
}
@@ -3694,10 +3694,10 @@ void dLytMiniGame_c::setDisplayedPoints(s32 points) {
fn_80295DB0();
mScore.setScore(points);
break;
case VARIANT_THRILL_DIGGER: mScore.fn_80291D40(points); break;
case VARIANT_10:
case VARIANT_13: mScore.setScore(points); break;
case VARIANT_11:
case VARIANT_THRILL_DIGGER: mScore.fn_80291D40(points); break;
case VARIANT_BAMBOO_CUTTING_RESULT:
case VARIANT_PUMPKIN_ARCHERY_RESULT: mScore.setScore(points); break;
case VARIANT_THRILL_DIGGER_RESULT:
mScore.setScore(points);
field_0x3864 = true;
field_0x3865 = false;
@@ -3747,7 +3747,7 @@ void dLytMiniGame_c::startFinish() {
}
}
void dLytMiniGame_c::fn_80295A20() {
void dLytMiniGame_c::startTimeup() {
switch (mVariant) {
case VARIANT_BAMBOO_CUTTING:
case VARIANT_FUN_FUN_ISLAND:
@@ -3815,15 +3815,15 @@ bool dLytMiniGame_c::isTimeupAnimDone() {
return false;
}
void dLytMiniGame_c::fn_80295B20(s32 score) {
void dLytMiniGame_c::setScoreUp(s32 score) {
mScoreSd.setScoreUp(score);
}
void dLytMiniGame_c::fn_80295B30(s32 score) {
void dLytMiniGame_c::setScoreDown(s32 score) {
mScoreSd.setScoreDown(score);
}
void dLytMiniGame_c::timeRelatedExecute() {
void dLytMiniGame_c::timeRelatedInit() {
switch (mVariant) {
case VARIANT_INSECT_CAPTURE:
case VARIANT_PUMPKIN_ARCHERY:
@@ -3835,19 +3835,19 @@ void dLytMiniGame_c::timeRelatedExecute() {
mTime.fn_8028DD80();
}
break;
case VARIANT_12:
case VARIANT_14:
case VARIANT_15:
case VARIANT_16: mTime.startAlphaIn(); break;
case VARIANT_INSECT_CAPTURE_RESULT:
case VARIANT_ROLLERCOASTER_RESULT:
case VARIANT_BOSS_RUSH_RESULT:
case VARIANT_TRIAL_TIME_ATTACK_RESULT: mTime.startAlphaIn(); break;
}
}
void dLytMiniGame_c::timeRelated() {
void dLytMiniGame_c::endTimeResult() {
switch (mVariant) {
case VARIANT_12:
case VARIANT_14:
case VARIANT_15:
case VARIANT_16: mTime.startAlphaOut(); break;
case VARIANT_INSECT_CAPTURE_RESULT:
case VARIANT_ROLLERCOASTER_RESULT:
case VARIANT_BOSS_RUSH_RESULT:
case VARIANT_TRIAL_TIME_ATTACK_RESULT: mTime.startAlphaOut(); break;
}
}
@@ -3856,17 +3856,17 @@ void dLytMiniGame_c::setDisplayedTime(s32 time) {
case VARIANT_INSECT_CAPTURE:
case VARIANT_ROLLERCOASTER:
case VARIANT_BOSS_RUSH:
case VARIANT_TRIAL_TIME_ATTACK: mTime.setTimerValueInMilliSeconds(time); break;
case VARIANT_PUMPKIN_ARCHERY: mTime.setTimerSecondsValueInMilliSeconds(time); break;
case VARIANT_SPIRAL_CHARGE_TUTORIAL: mTime.setTimerSecondsValueInMilliSeconds(time); break;
case VARIANT_12:
case VARIANT_14:
case VARIANT_15:
case VARIANT_16: mTime.setTimerValueInMilliSeconds(time); break;
case VARIANT_TRIAL_TIME_ATTACK: mTime.setTimerValueInMilliSeconds(time); break;
case VARIANT_PUMPKIN_ARCHERY: mTime.setTimerSecondsValueInMilliSeconds(time); break;
case VARIANT_SPIRAL_CHARGE_TUTORIAL: mTime.setTimerSecondsValueInMilliSeconds(time); break;
case VARIANT_INSECT_CAPTURE_RESULT:
case VARIANT_ROLLERCOASTER_RESULT:
case VARIANT_BOSS_RUSH_RESULT:
case VARIANT_TRIAL_TIME_ATTACK_RESULT: mTime.setTimerValueInMilliSeconds(time); break;
}
}
void dLytMiniGame_c::setHighscore(s32 time) {
void dLytMiniGame_c::setBestTime(s32 time) {
switch (mVariant) {
case VARIANT_INSECT_CAPTURE:
case VARIANT_ROLLERCOASTER:
@@ -3874,10 +3874,10 @@ void dLytMiniGame_c::setHighscore(s32 time) {
case VARIANT_TRIAL_TIME_ATTACK:
// case VARIANT_SPIRAL_CHARGE_TUTORIAL:
case VARIANT_PUMPKIN_ARCHERY:
case VARIANT_12:
case VARIANT_14:
case VARIANT_15:
case VARIANT_16: mTime.setBestTime(time); break;
case VARIANT_INSECT_CAPTURE_RESULT:
case VARIANT_ROLLERCOASTER_RESULT:
case VARIANT_BOSS_RUSH_RESULT:
case VARIANT_TRIAL_TIME_ATTACK_RESULT: mTime.setBestTime(time); break;
}
}
@@ -3889,10 +3889,10 @@ void dLytMiniGame_c::setShowBestTime(bool show) {
case VARIANT_TRIAL_TIME_ATTACK:
// case VARIANT_SPIRAL_CHARGE_TUTORIAL:
case VARIANT_PUMPKIN_ARCHERY:
case VARIANT_12:
case VARIANT_14:
case VARIANT_15:
case VARIANT_16: mTime.setShowBestTime(show); break;
case VARIANT_INSECT_CAPTURE_RESULT:
case VARIANT_ROLLERCOASTER_RESULT:
case VARIANT_BOSS_RUSH_RESULT:
case VARIANT_TRIAL_TIME_ATTACK_RESULT: mTime.setShowBestTime(show); break;
}
}
@@ -3933,7 +3933,7 @@ bool dLytMiniGame_c::isBugCollected(s32 slot) const {
}
void dLytMiniGame_c::fn_80295D80() {
scoreRelatedExecute();
scoreRelatedInit();
}
void dLytMiniGame_c::fn_80295D90(s32 points) {
@@ -3948,13 +3948,13 @@ void dLytMiniGame_c::getPumpkin(const mVec3_c &pumpkinPos, s32 unk, bool doubleS
bool dLytMiniGame_c::fn_80295DB0() {
bool ret = false;
switch (mVariant) {
case VARIANT_10:
case VARIANT_11:
case VARIANT_12:
case VARIANT_13:
case VARIANT_14:
case VARIANT_15:
case VARIANT_16: ret = true; break;
case VARIANT_BAMBOO_CUTTING_RESULT:
case VARIANT_THRILL_DIGGER_RESULT:
case VARIANT_INSECT_CAPTURE_RESULT:
case VARIANT_PUMPKIN_ARCHERY_RESULT:
case VARIANT_ROLLERCOASTER_RESULT:
case VARIANT_BOSS_RUSH_RESULT:
case VARIANT_TRIAL_TIME_ATTACK_RESULT: ret = true; break;
case VARIANT_FUN_FUN_ISLAND:
if (!MinigameManager::GetInstance()->checkInFunFunIsland()) {
ret = true;
@@ -4001,7 +4001,7 @@ bool dLytMiniGame_c::isFadingOut() const {
return ret;
}
void dLytMiniGame_c::fn_80295F90() {
void dLytMiniGame_c::executeBambooCutting() {
if (fn_80295DB0()) {
// nothing
} else {
@@ -4017,11 +4017,11 @@ void dLytMiniGame_c::fn_80295F90() {
}
}
void dLytMiniGame_c::fn_80296000() {
void dLytMiniGame_c::executeFunFunIsland() {
if (fn_80295DB0()) {
mScore.setField_0x816(true);
mScore.setResultMode(true);
} else {
mScore.setField_0x816(false);
mScore.setResultMode(false);
if (isPopupOpen()) {
mScore.startOutTemp();
} else {
@@ -4030,7 +4030,7 @@ void dLytMiniGame_c::fn_80296000() {
}
}
void dLytMiniGame_c::fn_80296070() {
void dLytMiniGame_c::executeThrillDigger() {
if (fn_80295DB0()) {
if (field_0x3864 == true) {
s32 score = mScore.getScore();
@@ -4058,7 +4058,7 @@ void dLytMiniGame_c::fn_80296070() {
}
}
void dLytMiniGame_c::fn_80296150() {
void dLytMiniGame_c::executeInsectCapture() {
if (fn_80295DB0()) {
// nothing
} else {
@@ -4082,7 +4082,7 @@ void dLytMiniGame_c::fn_80296150() {
}
}
void dLytMiniGame_c::fn_80296210() {
void dLytMiniGame_c::executeSpiralChargeTutorial() {
if (isInEvent() || isPopupOpen()) {
mScore.startOutTemp();
mTime.startOutTemp();
@@ -4097,7 +4097,7 @@ void dLytMiniGame_c::fn_80296210() {
}
}
void dLytMiniGame_c::fn_802962A0() {
void dLytMiniGame_c::executePumpkinArchery() {
if (!fn_80295DB0()) {
if (isPopupOpen()) {
mScore.startOutTemp();
@@ -4114,7 +4114,7 @@ void dLytMiniGame_c::fn_802962A0() {
}
}
void dLytMiniGame_c::fn_80296330() {
void dLytMiniGame_c::executeRollercoaster() {
if (fn_80295DB0()) {
// nothing
} else {
@@ -4135,7 +4135,7 @@ void dLytMiniGame_c::fn_80296330() {
}
// These two do the same thing
void dLytMiniGame_c::fn_802963E0() {
void dLytMiniGame_c::executeBossRush() {
if (fn_80295DB0()) {
// nothing
} else {
@@ -4155,7 +4155,7 @@ void dLytMiniGame_c::fn_802963E0() {
}
}
void dLytMiniGame_c::fn_80296480() {
void dLytMiniGame_c::executeTrialTimeAttack() {
if (fn_80295DB0()) {
// nothing
} else {