Added bombchu minigame difficulty menu (#2080)

* Added bombchu bowling difficulty menu

* Removed incorrect diff

* Added bombchu bowling difficulty presets

* Shortened cucco removal logic
This commit is contained in:
Oliver Schall 2022-12-06 07:17:20 +01:00 committed by GitHub
commit d9a08d0747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 1 deletions

View file

@ -69,6 +69,10 @@ void EnBomBowlMan_Init(Actor* thisx, PlayState* play2) {
Actor_SetScale(&this->actor, 0.013f);
for (i = 0; i < 2; i++) {
if(CVar_GetS32("gCustomizeBombchuBowling", 0) && CVar_GetS32(i == 0 ? "gBombchuBowlingNoSmallCucco" : "gBombchuBowlingNoBigCucco", 0)) {
continue;
}
cucco = (EnSyatekiNiw*)Actor_Spawn(&play->actorCtx, play, ACTOR_EN_SYATEKI_NIW, cuccoSpawnPos[i].x,
cuccoSpawnPos[i].y, cuccoSpawnPos[i].z, 0, 0, 0, 1);
@ -320,7 +324,12 @@ void EnBomBowlMan_HandlePlayChoice(EnBomBowlMan* this, PlayState* play) {
Rupees_ChangeBy(-30);
this->minigamePlayStatus = 1;
this->wallStatus[0] = this->wallStatus[1] = 0;
play->bombchuBowlingStatus = 10;
if(CVar_GetS32("gCustomizeBombchuBowling", 0)) {
play->bombchuBowlingStatus = CVar_GetS32("gBombchuBowlingAmmunition", 10);
}
else {
play->bombchuBowlingStatus = 10;
}
Flags_SetSwitch(play, 0x38);
if (!this->startedPlaying && !this->playingAgain) {