mirror of
https://github.com/zeldaret/tmc
synced 2026-06-25 18:04:49 -04:00
add subdirs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
extern void CreateItemEntity(u32, u32, u32);
|
||||
extern void DeleteThisEntity();
|
||||
extern void sub_08080CB4(Entity*);
|
||||
|
||||
extern void (*gUnk_08124824[])(Entity*);
|
||||
|
||||
extern Entity gLinkEntity;
|
||||
|
||||
void ObjectA8(Entity *this)
|
||||
{
|
||||
if ((this->bitfield & 0x80) != 0) {
|
||||
switch(this->bitfield & 0x7f) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
case 8:
|
||||
case 9:
|
||||
case 10:
|
||||
case 0xb:
|
||||
case 0xc:
|
||||
case 0x1e:
|
||||
case 0x1f:
|
||||
this->action = 5;
|
||||
this->attachedEntity = &gLinkEntity;
|
||||
CreateItemEntity((this->entityType).form, 0, 0);
|
||||
DeleteThisEntity();
|
||||
}
|
||||
}
|
||||
gUnk_08124824[this->action](this);
|
||||
sub_08080CB4(this);
|
||||
}
|
||||
Reference in New Issue
Block a user