diff options
| author | theo3 <arisstephenson2@gmail.com> | 2021-10-26 20:33:33 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2021-10-26 20:33:33 -0700 |
| commit | d29468c30bcf5d786e4d97446d8d3512063c71bc (patch) | |
| tree | c2b34a84ba0a7e9ccbabf03eaf66092d8695b604 /src/projectile/cannonballProjectile.c | |
| parent | 3f5449c1a1aed612e5b2c1190699bafef2603241 (diff) | |
add effects.h
Diffstat (limited to 'src/projectile/cannonballProjectile.c')
| -rw-r--r-- | src/projectile/cannonballProjectile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/projectile/cannonballProjectile.c b/src/projectile/cannonballProjectile.c index 8c6e7da4..150d5fe3 100644 --- a/src/projectile/cannonballProjectile.c +++ b/src/projectile/cannonballProjectile.c @@ -1,6 +1,7 @@ #include "entity.h" #include "enemy.h" #include "functions.h" +#include "effects.h" extern void CreateItemOnGround(Entity*); extern s32 sub_080AF090(Entity*); @@ -46,7 +47,7 @@ void CannonballProjectile_Init(Entity* this) { void CannonballProjectile_Action1(Entity* this) { GetNextFrame(this); if (sub_080AF090(this) == 0) { - CreateFx(this, 2, 0); + CreateFx(this, FX_DEATH, 0); DeleteThisEntity(); } sub_080AB5F4(this); @@ -56,7 +57,7 @@ void CannonballProjectile_Action2(Entity* this) { GetNextFrame(this); sub_080AF090(this); if ((sub_080AB634(this) == 0) && (this->collisions != 0)) { - CreateFx(this, 2, 0); + CreateFx(this, FX_DEATH, 0); DeleteThisEntity(); } } @@ -85,7 +86,7 @@ bool32 sub_080AB634(Entity* this) { entities[i]->action = 3; entities[i]->actionDelay = 0x1e; entities[i]->spriteSettings.b.draw = 0; - CreateFx(entities[i], 0x45, 0); + CreateFx(entities[i], FX_WHITE_ROCK, 0); } DeleteEntity(this); return TRUE; |
