Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
ShouldMovesAutoSucceed.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
npc.h
"
3
4
API_CALLABLE(N(ShouldMovesAutoSucceed)) {
5
script->varTable[0] = FALSE;
6
7
if
(
is_ability_active
(
ABILITY_RIGHT_ON
)) {
8
script->varTable[0] = TRUE;
9
}
10
11
if
(
gBattleStatus
.
flags1
&
BS_FLAGS1_AUTO_SUCCEED_ACTION
) {
12
script->varTable[0] = TRUE;
13
}
14
15
return
ApiStatus_DONE2
;
16
}
BS_FLAGS1_AUTO_SUCCEED_ACTION
@ BS_FLAGS1_AUTO_SUCCEED_ACTION
Definition
enums.h:3581
ABILITY_RIGHT_ON
@ ABILITY_RIGHT_ON
Definition
enums.h:458
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
is_ability_active
s32 is_ability_active(s32 arg0)
Definition
inventory.c:1725
npc.h
BattleStatus::flags1
s32 flags1
Definition
common_structs.h:857
gBattleStatus
BattleStatus gBattleStatus
Definition
battle.c:11
src
world
common
todo
ShouldMovesAutoSucceed.inc.c
Generated by
1.10.0