Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
IsBerserkerEquipped.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
npc.h
"
3
#include "
battle/action_cmd.h
"
4
5
API_CALLABLE(N(IsBerserkerEquipped)) {
6
script->varTable[0] =
gBattleStatus
.
actionCommandMode
;
7
script->varTable[1] = 15;
8
9
if
(
is_ability_active
(
ABILITY_BERSERKER
)) {
10
script->varTable[0] =
ACTION_COMMAND_MODE_NOT_LEARNED
;
11
script->varTable[1] = 40;
12
}
13
14
return
ApiStatus_DONE2
;
15
}
16
action_cmd.h
ACTION_COMMAND_MODE_NOT_LEARNED
@ ACTION_COMMAND_MODE_NOT_LEARNED
Definition
action_cmd.h:38
ABILITY_BERSERKER
@ ABILITY_BERSERKER
Definition
enums.h:457
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::actionCommandMode
s8 actionCommandMode
Definition
common_structs.h:883
gBattleStatus
BattleStatus gBattleStatus
Definition
battle.c:11
src
world
common
todo
IsBerserkerEquipped.inc.c
Generated by
1.10.0