5#include "sprite/player.h"
7#define NAMESPACE battle_item_food
13API_CALLABLE(N(func_802A123C_73330C)) {
27API_CALLABLE(N(func_802A12EC_7333BC)) {
51API_CALLABLE(N(SpawnHeartRecoveryFX)) {
58 fx_recover(0, a, b, c, d);
63API_CALLABLE(N(SpawnFlowerRecoveryFX)) {
70 fx_recover(1, a, b, c, d);
78API_CALLABLE(N(GetFoodParameters)) {
84 script->varTable[11] = item->
potencyA;
85 script->varTable[12] = item->
potencyB;
86 script->varTable[13] = FALSE;
89 script->varTable[13] = TRUE;
93 if ((script->varTable[11] < 0) || (script->varTable[11] <= 0 && script->varTable[12] < 0)) {
97 script->varTable[15] = isHarmful;
144 Call(InitTargetIterator)
147 Call(SetBattleCamTarget, -125, 1, 0)
148 Call(SetBattleCamOffsetY, 41)
149 Call(SetBattleCamDist, 248)
150 Call(MoveBattleCamOver, 25)
154 Call(AddBattleCamDist, 100)
155 Call(MoveBattleCamOver, 30)
183 #define LV_ItemID LVarA
184 #define LV_HPAmt LVarB
185 #define LV_FPAmt LVarC
186 #define LV_IsDrink LVarD
187 #define LV_NoRefund LVarE
188 #define LV_IsHarmful LVarF
194 Call(InitTargetIterator)
struct EffectInstance * disableEffect
struct DisableXFXData * disableX
@ ITEM_SPAWN_MODE_DECORATION
@ ITEM_TYPE_FLAG_USE_DRINK_ANIMATION
EntityModelScript EMS_StarIcon
s32 evt_get_variable(Evt *script, Bytecode var)
ItemEntity * get_item_entity(s32 itemEntityIndex)
void dispatch_event_partner(s32)
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 IfLt(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