mirror of
https://github.com/zeldaret/tmc
synced 2026-06-11 05:08:41 -04:00
f6f4d25bb9
Also ran the newline portion of format.sh and split some data files
41 lines
823 B
C
41 lines
823 B
C
#include "global.h"
|
|
#include "entity.h"
|
|
|
|
extern void EnemyFunctionHandler(Entity*, void (*const funcs[])(Entity*));
|
|
extern void CreateFx(Entity*, u32, u32);
|
|
extern void DeleteThisEntity();
|
|
|
|
extern void (*const gUnk_080CB570[])(Entity*);
|
|
extern void (*const gUnk_080CB588[])(Entity*);
|
|
|
|
void HangingSeed(Entity *this)
|
|
{
|
|
EnemyFunctionHandler(this, gUnk_080CB570);
|
|
}
|
|
|
|
void sub_080216E4(Entity *this)
|
|
{
|
|
gUnk_080CB588[this->action](this);
|
|
}
|
|
|
|
void sub_080216FC(Entity *this)
|
|
{
|
|
if ((this->bitfield & 0x80) != 0) {
|
|
CreateFx(this, 3, 0x80);
|
|
DeleteThisEntity();
|
|
}
|
|
}
|
|
|
|
void nullsub_7(Entity* this){}
|
|
|
|
void sub_08021720(Entity *this)
|
|
{
|
|
this->action = 1;
|
|
this->spriteSettings.b.ss0 = 1;
|
|
this->frameIndex = (this->entityType).form;
|
|
this->spriteOrder.b3 = 1;
|
|
this->ticks.b0 = 3;
|
|
}
|
|
|
|
void nullsub_08(Entity* this){}
|