103 {
107 s32 cutoff;
109
110 switch (
acs->state) {
113
118 }
119
124 }
125
127 break;
131 if (
acs->hudPosX > 50) {
133 }
136 break;
139 if (
acs->prepareTime != 0) {
141 return;
142 }
144 acs->meterFillLevel = 0;
145 acs->stateTimer =
acs->duration;
148
149
152
153
154 if (!
acs->isMeterFilled) {
155 if (
acs->statusChance != 0) {
158 if (
acs->meterFillLevel < 0) {
159 acs->meterFillLevel = 0;
160 }
161 } else {
162 acs->meterFillLevel -= 10;
163 if (
acs->meterFillLevel < 0) {
164 acs->meterFillLevel = 0;
165 }
166 }
167 }
168
169
173
175
178 } else {
182 }
183 }
184 }
185
186
193 }
194
197
198 if (
acs->stateTimer != 0) {
200 break;
201 }
202
204 if (
acs->statusChance == 0) {
206 }
207
210 } else {
212
213 }
214
215 cutoff =
acs->mashMeterCutoffs[
acs->mashMeterNumIntervals - 1];
218 } else {
220 }
221
223
225 }
230 break;
232 if (
acs->statusChance == 0) {
233 acs->meterFillLevel -= 100;
234 if (
acs->meterFillLevel < 0) {
235 acs->meterFillLevel = 0;
236 }
237 }
238
239 if (
acs->stateTimer != 0) {
241 break;
242 }
244 break;
245 }
246}
BSS s32 PopupMenu_SelectedIndex
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
void increment_action_command_success_count(void)
#define AC_QUALITY_FAILED
HudScript HES_MashAButton
#define GET_DRAIN_RATE(pct)
@ SOUND_LOOP_CHARGE_METER
@ ACTION_RESULT_METER_NOT_ENOUGH
void btl_set_popup_duration(s32 duration)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
void hud_element_clear_flags(s32 id, s32 flags)
Turns off the given flags.
@ 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