diff options
| author | gamestabled <chandler2016@yahoo.com> | 2021-03-15 02:40:37 -0400 |
|---|---|---|
| committer | gamestabled <chandler2016@yahoo.com> | 2021-03-15 02:40:37 -0400 |
| commit | e541025bb7c5bc4d4abeccc10bf0aef8f2662024 (patch) | |
| tree | 122a57efe1e83e57e0670f419b88b0ff4b9ba223 /src/object | |
| parent | d207eaf8fac4fb65bf34b3c5a617b8df13fe772a (diff) | |
MinishSizedArchway OK
Diffstat (limited to 'src/object')
| -rw-r--r-- | src/object/minishSizedArchway.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/object/minishSizedArchway.c b/src/object/minishSizedArchway.c new file mode 100644 index 00000000..f7fa4266 --- /dev/null +++ b/src/object/minishSizedArchway.c @@ -0,0 +1,18 @@ +#include "global.h" +#include "entity.h" +#include "sprite.h" + +extern u32 CheckIsDungeon(); + +void MinishSizedArchway(Entity* this) { + if (this->action == 0) { + this->action = 1; + this->frameIndex = this->type; + this->collisionLayer = 2; + UpdateSpriteForCollisionLayer(this); + if (CheckIsDungeon()) { + this->spritePriority.b0 = (this->spritePriority.b0 & 0xf8) | 1; + } + } + return; +} |
