mirror of
https://github.com/zeldaret/tmc
synced 2026-06-19 16:00:02 -04:00
object7E.c OK
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user