bushsanity (#5941)

This commit is contained in:
Philip Dubé
2025-12-30 20:24:00 +00:00
committed by GitHub
parent 5822c33268
commit 82b279f55e
16 changed files with 437 additions and 44 deletions
@@ -403,12 +403,14 @@ void EnWood02_Update(Actor* thisx, PlayState* play2) {
(player->linearVelocity != 0.0f)) ||
((player->rideActor != NULL) && (sqrt(this->actor.xyzDistToPlayerSq) < 60.0) &&
(player->rideActor->speedXZ != 0.0f))) {
if ((this->unk_14C >= 0) && (this->unk_14C < 0x64)) {
Item_DropCollectibleRandom(play, &this->actor, &this->actor.world.pos,
((this->unk_14C << 4) | 0x8000));
if (GameInteractor_Should(VB_BUSH_DROP_ITEM, true, this)) {
if ((this->unk_14C >= 0) && (this->unk_14C < 0x64)) {
Item_DropCollectibleRandom(play, &this->actor, &this->actor.world.pos,
((this->unk_14C << 4) | 0x8000));
}
this->unk_14C = -0x15;
Audio_PlayActorSound2(&this->actor, NA_SE_EV_TREE_SWING);
}
this->unk_14C = -0x15;
Audio_PlayActorSound2(&this->actor, NA_SE_EV_TREE_SWING);
}
}
} else { // Leaves