mirror of
https://github.com/zeldaret/tmc
synced 2026-06-02 18:19:01 -04:00
23 lines
470 B
C
23 lines
470 B
C
/**
|
|
* @file archway.c
|
|
* @ingroup Objects
|
|
*
|
|
* @brief Archway object
|
|
*/
|
|
#define NENT_DEPRECATED
|
|
#include "entity.h"
|
|
#include "game.h"
|
|
|
|
void Archway(Entity* this) {
|
|
if (this->action == 0) {
|
|
this->action = 1;
|
|
this->spriteSettings.draw = 1;
|
|
this->frameIndex = this->type2;
|
|
this->collisionLayer = 2;
|
|
UpdateSpriteForCollisionLayer(this);
|
|
if (AreaIsDungeon()) {
|
|
this->spritePriority.b0 = 1;
|
|
}
|
|
}
|
|
}
|