mirror of
https://github.com/zeldaret/tmc
synced 2026-07-10 07:06:52 -04:00
add subdirs
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
extern u32 Random(void);
|
||||
extern void CopyPosition(Entity*, Entity*);
|
||||
extern void sub_0806F69C(Entity*);
|
||||
extern void DeleteEntity(Entity*);
|
||||
|
||||
extern void (*const gUnk_08121060[])(Entity*);
|
||||
extern void (*const gUnk_08121070[])(Entity*);
|
||||
|
||||
extern s8 gUnk_08121068[];
|
||||
|
||||
void Smoke(Entity* this) {
|
||||
gUnk_08121060[this->entityType.form](this);
|
||||
}
|
||||
|
||||
void sub_0808A40C(Entity *this)
|
||||
{
|
||||
Entity *ent;
|
||||
|
||||
if (this->action == 0) {
|
||||
this->action = 1;
|
||||
this->actionDelay = 0x28;
|
||||
}
|
||||
if (--this->actionDelay == 0) {
|
||||
this->actionDelay = 0x40 - (Random() & 0x1f);
|
||||
ent = CreateObject(0x2d, 1, 0);
|
||||
if (ent != NULL) {
|
||||
CopyPosition(this,ent);
|
||||
ent->x.HALF.HI += gUnk_08121068[(Random() & 7)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void sub_0808A46C(Entity *this)
|
||||
{
|
||||
gUnk_08121070[this->action](this);
|
||||
}
|
||||
|
||||
void sub_0808A484(Entity *this)
|
||||
{
|
||||
this->action = 1;
|
||||
this->spriteSettings.b.draw = TRUE;
|
||||
this->nonPlanarMovement = 0x40;
|
||||
this->direction = 6;
|
||||
this->spriteRendering.b3 = 1;
|
||||
this->spritePriority.b0 = 0;
|
||||
this->spriteOrientation.flipY = 1;
|
||||
InitializeAnimation(this, 0x28);
|
||||
}
|
||||
|
||||
void sub_0808A4D0(Entity *this)
|
||||
{
|
||||
GetNextFrame(this);
|
||||
sub_0806F69C(this);
|
||||
if (this->frames.b.f3) {
|
||||
DeleteEntity(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user