5#include "sprite/player.h"
7#define NAMESPACE battle_item_life_shroom
13API_CALLABLE(N(func_802A123C_72E76C)) {
27API_CALLABLE(N(func_802A12EC_72E81C)) {
51API_CALLABLE(N(SpawnHeartRecoveryFX)) {
58 fx_recover(0, a, b, c, d);
63API_CALLABLE(N(func_802A1438_72E968)) {
72 script->varTable[3] = item->
potencyA;
77API_CALLABLE(N(func_802A1484_72E9B4)) {
81 ItemData* item = &itemTable[itemIdx];
83 script->varTable[11] = item->
potencyA;
84 script->varTable[12] = item->
potencyB;
86 itemIdx = script->varTable[11] < 0 || (script->varTable[11] <= 0 && script->varTable[12] < 0);
87 script->varTable[15] = itemIdx;
134 Call(InitTargetIterator)
137 Call(SetBattleCamTarget, -125, 1, 0)
138 Call(SetBattleCamOffsetY, 41)
139 Call(SetBattleCamDist, 248)
140 Call(MoveBattleCamOver, 25)
144 Call(AddBattleCamDist, 100)
145 Call(MoveBattleCamOver, 30)
177 Call(InitTargetIterator)
187 Call(N(func_802A1438_72E968))
struct EffectInstance * disableEffect
struct DisableXFXData * disableX
@ ITEM_SPAWN_MODE_DECORATION
s32 evt_get_variable(Evt *script, Bytecode var)
ItemEntity * get_item_entity(s32 itemEntityIndex)
void dispatch_event_partner(s32)
EntityModelScript EMS_StarIcon
ApiStatus RemoveItemEntity(Evt *script, b32 isInitialCall)
ApiStatus ShowRecoveryShimmer(Evt *script, b32 isInitialCall)
ApiStatus CreateVirtualEntity(Evt *script, b32 isInitialCall)
ApiStatus SetVirtualEntityFlags(Evt *script, b32 isInitialCall)
ApiStatus SetVirtualEntityPosition(Evt *script, b32 isInitialCall)
ApiStatus MakeItemEntity(Evt *script, b32 isInitialCall)
ApiStatus GetVirtualEntityPosition(Evt *script, b32 isInitialCall)
ApiStatus ShowStartRecoveryShimmer(Evt *script, b32 isInitialCall)
ApiStatus SetVirtualEntityJumpGravity(Evt *script, b32 isInitialCall)
ApiStatus VirtualEntityJumpTo(Evt *script, b32 isInitialCall)
#define Ref(sym)
Address/pointer constant.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define EndLoop
Marks the end of a loop.
#define IfGt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR <= RVAR.
#define EndIf
Marks the end of an if statement or an else block.
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define Thread
Marks the start of a thread block.
#define EndThread
Marks the end of a thread block.
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Loop(TIMES)
Marks the beginning of a loop.
#define SetConst(VAR, CONST)
Sets the given variable to a given value, skipping the evt_get_variable call.
#define Return
Kills the current EVT thread.
struct Actor * partnerActor
BattleStatus gBattleStatus