diff options
| author | Henny022p <73211432+Henny022p@users.noreply.github.com> | 2026-02-08 16:59:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-08 16:59:19 +0100 |
| commit | b09c069c1a082b384d8e289707ffab608487a62f (patch) | |
| tree | 4843cdbaaba1ce9d435186559deb41c1e35fc482 /src/enemy/octorok.c | |
| parent | b68b975d6c893b0b24299f801a0b63582f11f234 (diff) | |
| parent | f3365f1e2ecd0559f50b21dcce1556a50d5db57c (diff) | |
Merge pull request #697 from Henny022p/peahat-delta-speed
Document Peahat
Diffstat (limited to 'src/enemy/octorok.c')
| -rw-r--r-- | src/enemy/octorok.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/enemy/octorok.c b/src/enemy/octorok.c index bdf9c73f..35153389 100644 --- a/src/enemy/octorok.c +++ b/src/enemy/octorok.c @@ -15,7 +15,6 @@ extern void (*const Octorok_Functions[6])(Entity*); extern void (*const gOctorokActions[4])(Entity*); extern void (*const gUnk_080CA158[6])(Entity*); -extern Entity* gUnk_020000B0; extern const u8 gOctorokWalkDuration[4]; extern const u8 gOctorokSpitChanceModifier[2]; extern const u8 gOctorokNutOffset[8]; @@ -153,7 +152,7 @@ void Octorok_Turn(Entity* this) { if (this->type != 2) { if (sub_08049FA0(this)) { if (this->type == 1 && (Random() & 3) == 0 && sub_08049FDC(this, 1)) { - this->direction = DirectionRoundUp(GetFacingDirection(this, gUnk_020000B0)); + this->direction = DirectionRoundUp(GetFacingDirection(this, gEnemyTarget)); } else { this->direction = DirectionRound(Random()); } @@ -169,10 +168,10 @@ void Octorok_Turn(Entity* this) { } else if (Random() & 3) { this->direction = DirectionRound(sub_08049EE4(this) + gUnk_080CA17E[Random() & 1]); } else { - this->direction = DirectionRoundUp(GetFacingDirection(this, gUnk_020000B0)); + this->direction = DirectionRoundUp(GetFacingDirection(this, gEnemyTarget)); } } else { - this->direction = DirectionRoundUp(GetFacingDirection(this, gUnk_020000B0)); + this->direction = DirectionRoundUp(GetFacingDirection(this, gEnemyTarget)); } } |
