mirror of
https://github.com/zeldaret/tmc
synced 2026-08-28 00:41:52 -04:00
29 lines
691 B
C
29 lines
691 B
C
#include "global.h"
|
|
#include "entity.h"
|
|
#include "item.h"
|
|
#include "functions.h"
|
|
|
|
extern void (*const gUnk_0811BDE0[])(ItemBehavior* beh, u32);
|
|
|
|
void ItemPacciCane(ItemBehavior* beh, u32 idx) {
|
|
gUnk_0811BDE0[beh->stateID](beh, idx);
|
|
}
|
|
|
|
void sub_08076C98(ItemBehavior* beh, u32 idx) {
|
|
beh->field_0x5[4] |= 0xf;
|
|
sub_08077D38(beh, idx);
|
|
sub_0806F948(&gPlayerEntity);
|
|
sub_08077BB8(beh);
|
|
}
|
|
|
|
void sub_08076CBC(ItemBehavior* beh, u32 idx) {
|
|
if ((beh->field_0x5[9] & 0x80) != 0) {
|
|
DeletePlayerItem(beh, idx);
|
|
} else {
|
|
if ((beh->field_0x5[9] & 0x40) != 0) {
|
|
CreatePlayerItemWithParent(beh, 0x12);
|
|
}
|
|
UpdateItemAnim(beh);
|
|
}
|
|
}
|