#include "global.h" #include "entity.h" #include "functions.h" #include "flags.h" extern void (*gUnk_0811423C[])(Entity*); void ClothesRack(Entity* this) { gUnk_0811423C[this->action](this); } void sub_0806DD90(Entity* this) { u32 uVar1; u32 uVar2; u32 x; u32 y; this->action = 1; uVar1 = CheckGlobalFlag(DRUG_1); uVar2 = BOOLCAST(uVar1); if (CheckGlobalFlag(DRUG_2) != 0) { uVar2 = 2; } if (CheckGlobalFlag(DRUG_3) != 0) { uVar2 = 3; } InitializeAnimation(this, uVar2); x = this->x.HALF.HI; y = this->y.HALF.HI; SetTile(0x4072, TILE(x - 0x18, y - 0x10), this->collisionLayer); SetTile(0x4072, TILE(x - 0x18, y), this->collisionLayer); SetTile(0x4072, TILE(x - 0x18, y + 0x10), this->collisionLayer); SetTile(0x4072, TILE(x + 0x18, y - 0x10), this->collisionLayer); SetTile(0x4072, TILE(x + 0x18, y), this->collisionLayer); SetTile(0x4072, TILE(x + 0x18, y + 0x10), this->collisionLayer); } void sub_0806DEC8(Entity* this) { GetNextFrame(this); }