diff options
| author | theo3 <arisstephenson2@gmail.com> | 2023-12-30 20:05:32 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2023-12-30 20:05:32 -0800 |
| commit | 201955ea052a5188f2e59bdcdbf6c52ff158ee66 (patch) | |
| tree | 66474a7515b56c90e1d0b94a0a39f42da6677d71 /src/enemy/wizzrobeWind.c | |
| parent | 37714644960c56650dd1067b86aafa685eaf01f4 (diff) | |
create enemy struct and enemy flags
Diffstat (limited to 'src/enemy/wizzrobeWind.c')
| -rw-r--r-- | src/enemy/wizzrobeWind.c | 10 |
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; } |
