summaryrefslogtreecommitdiff
path: root/src/enemy/wizzrobeWind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/enemy/wizzrobeWind.c')
-rw-r--r--src/enemy/wizzrobeWind.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/enemy/wizzrobeWind.c b/src/enemy/wizzrobeWind.c
index ac1c3396..8f23e3da 100644
--- a/src/enemy/wizzrobeWind.c
+++ b/src/enemy/wizzrobeWind.c
@@ -21,7 +21,7 @@ void sub_0802F8E4(WizzrobeEntity*);
void WizzrobeWind(WizzrobeEntity* this) {
WizzrobeWind_Functions[GetNextFunction(super)](this);
- SetChildOffset(super, 0, 1, -0x10);
+ EnemySetFXOffset(super, 0, 1, -0x10);
}
void WizzrobeWind_OnTick(WizzrobeEntity* this) {
@@ -30,7 +30,7 @@ void WizzrobeWind_OnTick(WizzrobeEntity* this) {
void WizzrobeWind_OnCollision(WizzrobeEntity* this) {
if (super->confusedTime != 0) {
- Create0x68FX(super, FX_STARS);
+ EnemyCreateFX(super, FX_STARS);
}
EnemyFunctionHandlerAfterCollision(super, WizzrobeWind_Functions);
if (super->contactFlags == 0x87) {
@@ -66,7 +66,7 @@ void WizzrobeWind_Init(WizzrobeEntity* this) {
super->subtimer = 96;
sub_0802F888(this);
}
- projectile = CreateProjectileWithParent(super, WIND_PROJECTILE, 0);
+ projectile = EnemyCreateProjectile(super, WIND_PROJECTILE, 0);
if (projectile != NULL) {
super->parent = projectile;
projectile->parent = super;
@@ -119,7 +119,7 @@ void WizzrobeWind_Action2(WizzrobeEntity* this) {
break;
case 8:
if (EntityInRectRadius(super, &gPlayerEntity.base, 0xa0, 0xa0) && CheckOnScreen(super)) {
- Entity* projectile = CreateProjectileWithParent(super, WIND_PROJECTILE, 1);
+ Entity* projectile = EnemyCreateProjectile(super, WIND_PROJECTILE, 1);
if (projectile != NULL) {
projectile->direction = super->direction & 0x18;
}
@@ -190,7 +190,7 @@ void WizzrobeWind_Action3(WizzrobeEntity* this) {
parent->spriteSettings.draw = 0;
InitializeAnimation(super, super->animationState >> 1);
} else if (super->timer == 8) {
- parent = CreateProjectileWithParent(super, WIND_PROJECTILE, 1);
+ parent = EnemyCreateProjectile(super, WIND_PROJECTILE, 1);
if (parent != NULL) {
parent->direction = super->direction & 0x18;
}