summaryrefslogtreecommitdiff
path: root/src/enemy/octorok.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2023-12-30 20:05:32 -0800
committertheo3 <arisstephenson2@gmail.com>2023-12-30 20:05:32 -0800
commit201955ea052a5188f2e59bdcdbf6c52ff158ee66 (patch)
tree66474a7515b56c90e1d0b94a0a39f42da6677d71 /src/enemy/octorok.c
parent37714644960c56650dd1067b86aafa685eaf01f4 (diff)
create enemy struct and enemy flags
Diffstat (limited to 'src/enemy/octorok.c')
-rw-r--r--src/enemy/octorok.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/enemy/octorok.c b/src/enemy/octorok.c
index d33a9a54..bdf9c73f 100644
--- a/src/enemy/octorok.c
+++ b/src/enemy/octorok.c
@@ -24,7 +24,7 @@ extern const s8 gUnk_080CA17E[2];
// Main
void Octorok(Entity* this) {
EnemyFunctionHandler(this, Octorok_Functions);
- SetChildOffset(this, 0, 1, -16);
+ EnemySetFXOffset(this, 0, 1, -16);
}
// Idle
@@ -35,7 +35,7 @@ void Octorok_OnTick(Entity* this) {
// Touch player
void Octorok_OnCollision(Entity* this) {
if (this->confusedTime != 0) {
- Create0x68FX(this, FX_STARS);
+ EnemyCreateFX(this, FX_STARS);
}
EnemyFunctionHandlerAfterCollision(this, Octorok_Functions);
}
@@ -45,7 +45,7 @@ void Octorok_OnDeath(Entity* this) {
if (this->type == 0) {
GenericDeath(this);
} else {
- CreateDeathFx(this, 241, 0);
+ EnemyCreateDeathFX((Enemy*)this, 241, 0);
}
}
@@ -127,7 +127,7 @@ void Octorok_Move(Entity* this) {
void Octorok_ShootNut(Entity* this) {
GetNextFrame(this);
if (this->frame & 1) {
- Entity* entity = CreateProjectileWithParent(this, ROCK_PROJECTILE, 0);
+ Entity* entity = EnemyCreateProjectile(this, ROCK_PROJECTILE, 0);
if (entity != NULL) {
const s8* off;
entity->direction = this->direction;