mirror of
https://github.com/zeldaret/tmc
synced 2026-06-20 00:08:03 -04:00
18 lines
419 B
C
18 lines
419 B
C
#include "global.h"
|
|
#include "entity.h"
|
|
#include "sprite.h"
|
|
#include "functions.h"
|
|
|
|
void Archway(Entity* this) {
|
|
if (this->action == 0) {
|
|
this->action = 1;
|
|
this->spriteSettings.b.draw = 1;
|
|
this->frameIndex = this->type2;
|
|
this->collisionLayer = 2;
|
|
UpdateSpriteForCollisionLayer(this);
|
|
if (CheckIsDungeon()) {
|
|
this->spritePriority.b0 = 1;
|
|
}
|
|
}
|
|
}
|