Skip to content

Commit

Permalink
ADD: Synch Great Fairy Bombable Walls
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleHato committed Sep 3, 2023
1 parent 84ff7a3 commit b62b80c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void BgSpot08Bakudankabe_Destroy(Actor* thisx, PlayState* play) {
void BgSpot08Bakudankabe_Update(Actor* thisx, PlayState* play) {
BgSpot08Bakudankabe* this = (BgSpot08Bakudankabe*)thisx;

if (this->collider.base.acFlags & AC_HIT) {
if (this->collider.base.acFlags & AC_HIT || Flags_GetSwitch(play, (this->dyna.actor.params & 0x3F))) {
func_808B0324(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
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void BgSpot11Bakudankabe_Destroy(Actor* thisx, PlayState* play) {
void BgSpot11Bakudankabe_Update(Actor* thisx, PlayState* play) {
BgSpot11Bakudankabe* this = (BgSpot11Bakudankabe*)thisx;

if (this->collider.base.acFlags & AC_HIT) {
if (this->collider.base.acFlags & AC_HIT || Flags_GetSwitch(play, (this->dyna.actor.params & 0x3F))) {
func_808B2218(this, play);
Flags_SetSwitch(play, (this->dyna.actor.params & 0x3F));
SoundSource_PlaySfxAtFixedWorldPos(play, &D_808B2738, 40, NA_SE_EV_WALL_BROKEN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ void BgSpot17Bakudankabe_Destroy(Actor* thisx, PlayState* play) {

void BgSpot17Bakudankabe_Update(Actor* thisx, PlayState* play) {
BgSpot17Bakudankabe* this = (BgSpot17Bakudankabe*)thisx;
if (this->dyna.actor.xzDistToPlayer < 650.0f && func_80033684(play, &this->dyna.actor) != NULL) {
if (this->dyna.actor.xzDistToPlayer < 650.0f && func_80033684(play, &this->dyna.actor) != NULL ||
Flags_GetSwitch(play, (this->dyna.actor.params & 0x3F))) {
func_808B6BC0(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 b62b80c

Please sign in to comment.