5#include "sprite/player.h"
7#define NAMESPACE battle_item_mushroom
13API_CALLABLE(N(func_802A123C_715A8C)) {
27API_CALLABLE(N(func_802A12EC_715B3C)) {
51API_CALLABLE(N(SpawnHeartRecoveryFX)) {
58 fx_recover(0, a, b, c, d);
63API_CALLABLE(N(SpawnFlowerRecoveryFX)) {
70 fx_recover(1, a, b, c, d);
79API_CALLABLE(N(func_802A15A0_715DF0)) {
84 script->varTable[11] = item->
potencyA;
85 script->varTable[12] = item->
potencyB;
86 script->varTable[15] = item->
potencyA == 1;
133 Call(InitTargetIterator)
136 Call(SetBattleCamTarget, -125, 1, 0)
137 Call(SetBattleCamOffsetY, 41)
138 Call(SetBattleCamDist, 248)
139 Call(MoveBattleCamOver, 25)
143 Call(AddBattleCamDist, 100)
144 Call(MoveBattleCamOver, 30)
176 Call(InitTargetIterator)
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 Else
Marks the end of an if statement and the start of the else block.
#define Ref(sym)
Address/pointer constant.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define IfNe(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR != RVAR.
#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 Return
Kills the current EVT thread.
struct Actor * partnerActor
BattleStatus gBattleStatus