Skip to content

Commit

Permalink
ADD: Spirit Temple Bombable wall and Bomchu wall
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleHato committed Sep 2, 2023
1 parent ad151b8 commit 4ea0f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void BgJyaBombchuiwa_SetupWaitForExplosion(BgJyaBombchuiwa* this, PlayState* pla
}

void BgJyaBombchuiwa_WaitForExplosion(BgJyaBombchuiwa* this, PlayState* play) {
if ((this->collider.base.acFlags & AC_HIT) || (this->timer > 0)) {
if ((this->collider.base.acFlags & AC_HIT) || (this->timer > 0) || Flags_GetSwitch(play, this->actor.params & 0x3F)) {
if (this->timer == 0) {
OnePointCutscene_Init(play, 3410, -99, &this->actor, MAIN_CAM);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void BgJyaBombiwa_Break(BgJyaBombiwa* this, PlayState* play) {
void BgJyaBombiwa_Update(Actor* thisx, PlayState* play) {
BgJyaBombiwa* this = (BgJyaBombiwa*)thisx;

if (this->collider.base.acFlags & AC_HIT) {
if (this->collider.base.acFlags & AC_HIT || Flags_GetSwitch(play, this->dyna.actor.params & 0x3F)) {
BgJyaBombiwa_Break(this, play);
Flags_SetSwitch(play, this->dyna.actor.params & 0x3F);
SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN);
Expand Down

0 comments on commit 4ea0f2a

Please sign in to comment.