3#include "sprite/player.h"
5#define NAMESPACE battle_move_hammer_charge_0
11API_CALLABLE(func_802A10C8_74F1F8) {
18 fx_stat_change(0, var1, var2, var3, 1.0f, 60);
27 battleStatus->
flags1 &= ~BS_FLAGS1_JUMP_CHARGED;
32API_CALLABLE(func_802A11CC_74F2FC) {
39 fx_energy_in_out(6, var0 + 10, var1 + 18, var2, var3, 45);
124 ExecWait(N(EVS_HammerSupport_ReturnHome_Miss))
158 ExecWait(N(EVS_HammerSupport_ReturnHome_Success))
162 ExecWait(N(EVS_HammerSupport_ReturnHome_Miss))
203 Call(MoveBattleCamOver, 5)
204 Call(N(IsHammerMaxCharged))
216 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer1_Charged, ANIM_MarioB3_Hammer1_Charged, ANIM_MarioB3_Hammer1_Charged)
218 Call(PlayerHopToGoal, 20, 0, 0)
254 Call(MoveBattleCamOver, 5)
255 Call(N(IsHammerMaxCharged))
267 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer2_Charged, ANIM_MarioB3_Hammer2_Charged, ANIM_MarioB3_Hammer2_Charged)
269 Call(PlayerHopToGoal, 20, 0, 0)
305 Call(MoveBattleCamOver, 5)
306 Call(N(IsHammerMaxCharged))
318 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_MarioB3_Hammer3_Charged, ANIM_MarioB3_Hammer3_Charged, ANIM_MarioB3_Hammer3_Charged)
320 Call(PlayerHopToGoal, 20, 0, 0)
@ BS_FLAGS1_TRIGGER_EVENTS
@ BS_FLAGS1_HAMMER_CHARGED
@ BS_FLAGS1_INCLUDE_POWER_UPS
@ HIT_RESULT_NICE_NO_DAMAGE
@ BTL_CAM_PLAYER_HAMMER_STRIKE
@ BTL_CAM_PLAYER_CHARGE_UP
#define SUPPRESS_EVENTS_HAMMER
@ BTL_RUMBLE_PLAYER_HEAVY
@ BTL_RUMBLE_PLAYER_LIGHT
s32 evt_get_variable(Evt *script, Bytecode var)
f32 evt_get_float_variable(Evt *script, Bytecode var)
ApiStatus ShakeCam(Evt *script, b32 isInitialCall)
#define Else
Marks the end of an if statement and the start of the else block.
#define Switch(LVAR)
Marks the start of a switch statement.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define CaseEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR. It also marks the end of any pre...
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
#define Goto(LABEL_ID)
Moves execution to the given label.
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
#define CaseOrEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR.
#define EndIf
Marks the end of an if statement or an else block.
#define CaseDefault
Marks the start of a switch case that executes unconditionally. It also marks the end of any previous...
#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 EndSwitch
Marks the end of a switch statement and any case.
#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 CaseGt(RVAR)
Marks the start of a switch case that executes only if LVAR <= RVAR. It also marks the end of any pre...
#define Return
Kills the current EVT thread.
BattleStatus gBattleStatus