papermario/src/world/partner/goompa.c
Alex Bates 73e85dd961 lint
2020-12-23 12:43:16 +00:00

52 lines
1.0 KiB
C

#include "common.h"
#include "goompa.h"
void world_goompa_init(Npc* partner) {
partner->collisionHeight = 24;
partner->collisionRadius = 20;
}
ApiStatus GoompaTakeOut(ScriptInstance* script, s32 isInitialCall) {
Npc* owner = script->owner2.npc;
if (isInitialCall) {
func_800EECC4(owner);
}
return func_800EECE8(owner) != 0;
}
INCLUDE_ASM(s32, "world_goompa", func_802BD14C);
INCLUDE_ASM(s32, "world_goompa", func_802BD4E0);
ApiStatus GoompaUseAbility(ScriptInstance* script, s32 isInitialCall) {
return ApiStatus_DONE2;
}
ApiStatus GoompaPutAway(ScriptInstance* script, s32 isInitialCall) {
Npc* owner = script->owner2.npc;
if (isInitialCall) {
func_800EE994(owner);
}
return func_800EE9B8(owner) != 0;
}
Script world_goompa_take_out = SCRIPT({
GoompaTakeOut()
});
s32 unk = 0x802BD600;
Script world_goompa_update = SCRIPT({
func_802BD14C()
});
Script world_goompa_use_ability = SCRIPT({
GoompaUseAbility()
});
Script world_goompa_put_away = SCRIPT({
GoompaPutAway()
});