MinishSizedArchway OK

This commit is contained in:
gamestabled
2021-03-15 02:40:37 -04:00
parent d207eaf8fa
commit e541025bb7
3 changed files with 19 additions and 41 deletions
+18
View File
@@ -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;
}