diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-08-15 12:23:03 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-08-15 12:23:03 -0700 |
| commit | 5ffec8a61173143c43ee39d0b8a4d334fd92171d (patch) | |
| tree | f617f1e5ff49910a63f7dc5f18460cc7f610d484 /src | |
| parent | c32fcaca51729c416451bd2df4318ab9649f3f03 (diff) | |
object7E.c OK
Diffstat (limited to 'src')
| -rw-r--r-- | src/object/object7E.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/object/object7E.c b/src/object/object7E.c new file mode 100644 index 00000000..744a1b3d --- /dev/null +++ b/src/object/object7E.c @@ -0,0 +1,26 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +void Object7E(Entity *this) { + + if (this->parent->field_0x4 == NULL) { + DeleteThisEntity(); + } + if (this->action == 0) { + this->action = 1; + this->spritePriority.b0 = 7; + this->frameIndex = 0x28; + if (this->entityType.form == 0) { + this->spriteSettings.b.draw = TRUE; + } else if (this->entityType.form == 2) { + this->spriteSettings.b.flipX = TRUE; + } + } + PositionRelative(this->parent, this, 0, 0x80000); + this->height.HALF.HI = 0; + if ((this->entityType).form != 0) { + this->spriteSettings.b.draw = this->attachedEntity->spriteSettings.b.draw; + this->frameIndex = this->attachedEntity->frameIndex + 0x1f; + } +}
\ No newline at end of file |
