Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
CheckPartnerFlags1000.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
npc.h
"
3
4
API_CALLABLE(N(CheckPartnerFlags1000)) {
5
if
(
get_npc_unsafe
(
NPC_PARTNER
)->
flags
&
NPC_FLAG_GROUNDED
) {
6
return
ApiStatus_DONE2
;
7
}
else
{
8
return
ApiStatus_BLOCK
;
9
}
10
}
flags
s8 flags
Definition
demo_api.c:15
NPC_PARTNER
@ NPC_PARTNER
Definition
enums.h:2528
NPC_FLAG_GROUNDED
@ NPC_FLAG_GROUNDED
Definition
enums.h:3010
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
ApiStatus_BLOCK
#define ApiStatus_BLOCK
Definition
evt.h:116
npc.h
get_npc_unsafe
Npc * get_npc_unsafe(s32 npcID)
Definition
npc.c:995
src
world
common
todo
CheckPartnerFlags1000.inc.c
Generated by
1.10.0