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/wizzrobeFire.c | |
| parent | 37714644960c56650dd1067b86aafa685eaf01f4 (diff) | |
create enemy struct and enemy flags
Diffstat (limited to 'src/enemy/wizzrobeFire.c')
| -rw-r--r-- | src/enemy/wizzrobeFire.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/enemy/wizzrobeFire.c b/src/enemy/wizzrobeFire.c index 356a8b1b..0253a142 100644 --- a/src/enemy/wizzrobeFire.c +++ b/src/enemy/wizzrobeFire.c @@ -13,7 +13,7 @@ extern void (*const WizzrobeFire_Actions[])(WizzrobeEntity*); void WizzrobeFire(WizzrobeEntity* this) { WizzrobeFire_Functions[GetNextFunction(super)](this); - SetChildOffset(super, 0, 1, -0x10); + EnemySetFXOffset(super, 0, 1, -0x10); } void WizzrobeFire_OnTick(WizzrobeEntity* this) { @@ -22,7 +22,7 @@ void WizzrobeFire_OnTick(WizzrobeEntity* this) { void WizzrobeFire_OnCollision(WizzrobeEntity* this) { if (super->confusedTime != 0) { - Create0x68FX(super, FX_STARS); + EnemyCreateFX(super, FX_STARS); } EnemyFunctionHandlerAfterCollision(super, WizzrobeFire_Functions); if (super->health == 0) { @@ -40,7 +40,7 @@ void WizzrobeFire_Init(WizzrobeEntity* this) { super->timer = 40; super->subtimer = 96; sub_0802F888(this); - projectile = CreateProjectileWithParent(super, FIRE_PROJECTILE, 0); + projectile = EnemyCreateProjectile(super, FIRE_PROJECTILE, 0); if (projectile != NULL) { super->child = projectile; projectile->parent = super; @@ -96,7 +96,7 @@ void WizzrobeFire_Action2(WizzrobeEntity* this) { break; case 6: if (EntityInRectRadius(super, &gPlayerEntity.base, 0xa0, 0xa0) && CheckOnScreen(super)) { - Entity* projectile = CreateProjectileWithParent(super, FIRE_PROJECTILE, 1); + Entity* projectile = EnemyCreateProjectile(super, FIRE_PROJECTILE, 1); if (projectile != NULL) { projectile->direction = super->direction & 0x18; } |
