4#define NAMESPACE action_command_squirt
15#define METER_DRAIN_RATE 250
21#define GET_DRAIN_RATE(pct) (N(DrainRateTable)[((pct) / (ONE_PCT_MASH / 5))])
22#define GET_FILL_RATE(pct) (N(FillRateTable)[((pct) / (ONE_PCT_MASH / 5))])
24API_CALLABLE(N(
init)) {
41 acs->meterFillLevel = 0;
42 acs->meterFillWidth = 0;
63API_CALLABLE(N(start)) {
81 acs->meterFillLevel = 0;
82 acs->meterFillWidth = 0;
101 switch (
acs->state) {
123 if (
acs->hudPosX > 50) {
133 if (
acs->prepareTime != 0) {
139 acs->meterFillLevel = 0;
141 acs->stateTimer =
acs->duration;
150 cutoff =
acs->mashMeterCutoffs[
acs->mashMeterNumIntervals];
152 if (!
acs->squirt.draining) {
155 if (
acs->meterFillLevel < 0) {
156 acs->meterFillLevel = 0;
168 if (
acs->meterFillLevel <= 0) {
169 acs->meterFillLevel = 0;
188 if (
acs->stateTimer != 0) {
193 if (
acs->meterFillLevel == 0) {
200 cutoff =
acs->mashMeterCutoffs[
acs->mashMeterNumIntervals - 1];
218 if (
acs->stateTimer != 0) {
236 if (!
acs->squirt.draining) {
BSS s32 PopupMenu_SelectedIndex
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
void increment_action_command_attempt_count(void)
void draw_mash_meter_multicolor_with_divisor(s32 posX, s32 posY, s32 fillValue, s32 divisor)
void draw_mash_meter_mode_with_divisor(s32 posX, s32 posY, s32 fillValue, s32 divisor, s32 colorMode)
s32 adjust_action_command_difficulty(s32 difficultyLevel)
void increment_action_command_success_count(void)
void action_command_init_status(void)
#define AC_QUALITY_FAILED
@ MASH_METER_MODE_ONE_COLOR
#define SCALE_BY_PCT(x, pct)
HudScript HES_PressAButton
HudScript HES_AButtonDown
#define GET_DRAIN_RATE(pct)
#define GET_FILL_RATE(pct)
s32 actionCmdTableSquirt[]
@ SOUND_LOOP_CHARGE_METER
@ ACTION_RESULT_METER_BELOW_HALF
void btl_set_popup_duration(s32 duration)
s32 evt_get_variable(Evt *script, Bytecode var)
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_set_render_depth(s32 id, s32 z)
HudScript * hud_element_get_script(s32 id)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
s32 hud_element_create(HudScript *anim)
Creates a new HUD element and returns its ID.
void hud_element_set_flags(s32 id, s32 flags)
Turns on the given flags.
void hud_element_clear_flags(s32 id, s32 flags)
Turns off the given flags.
void hud_element_draw_clipped(s32 id)
void hud_element_free(s32 id)
@ HUD_ELEMENT_FLAG_DISABLED
void sfx_stop_sound(s32 soundID)
void sfx_adjust_env_sound_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
void sfx_play_sound_with_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
BattleStatus gBattleStatus
void N init(Npc *bombette)