mirror of https://github.com/zeldaret/tmc.git
Decompile ObjectE
This commit is contained in:
parent
a7c364d9e8
commit
c09f143423
|
@ -634,7 +634,7 @@ SECTIONS {
|
||||||
src/object/objectB.o(.text);
|
src/object/objectB.o(.text);
|
||||||
src/object/chestSpawner.o(.text);
|
src/object/chestSpawner.o(.text);
|
||||||
src/object/objectD.o(.text);
|
src/object/objectD.o(.text);
|
||||||
asm/object/objectE.o(.text);
|
src/object/objectE.o(.text);
|
||||||
src/object/specialFx.o(.text);
|
src/object/specialFx.o(.text);
|
||||||
asm/object/object10.o(.text);
|
asm/object/object10.o(.text);
|
||||||
src/object/object11.o(.text);
|
src/object/object11.o(.text);
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
/**
|
||||||
|
* @file objectE.c
|
||||||
|
* @ingroup Objects
|
||||||
|
*
|
||||||
|
* @brief ObjectE object
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define NENT_DEPRECATED
|
||||||
|
#include "global.h"
|
||||||
|
#include "object.h"
|
||||||
|
#include "functions.h"
|
||||||
|
|
||||||
|
void ObjectE(Entity* this) {
|
||||||
|
if (this->action == 0) {
|
||||||
|
this->action = 1;
|
||||||
|
this->actionDelay = 0x14;
|
||||||
|
sub_08004168(this);
|
||||||
|
} else {
|
||||||
|
if (this->actionDelay-- == 0) {
|
||||||
|
sub_0807B7D8(0x35, COORD_TO_TILE(this), this->collisionLayer);
|
||||||
|
CreateFx(this, FX_FALL_DOWN, 0x40);
|
||||||
|
SoundReq(SFX_126);
|
||||||
|
DeleteThisEntity();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue