summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-16 14:30:30 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-16 14:30:30 -0400
commitaedd30e1040e99af27d8455a93adf3834401046e (patch)
treebdb08560275be91e481be0031ffca8af6fd2f2f2
parent7794570c71a82fca440bc13e18da45f49642eb6c (diff)
Remove unneeded pokedude macros
-rw-r--r--src/battle_controller_pokedude.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/battle_controller_pokedude.c b/src/battle_controller_pokedude.c
index 07d3f8d31..b43df803e 100644
--- a/src/battle_controller_pokedude.c
+++ b/src/battle_controller_pokedude.c
@@ -1979,7 +1979,7 @@ static void PokedudeHandleCmd55(void)
{
gBattleOutcome = gBattleBufferA[gActiveBattler][1];
FadeOutMapMusic(5);
- BeginFastPaletteFade(3);
+ BeginFastPaletteFade(FAST_FADE_OUT_TO_BLACK);
PokedudeBufferExecCompleted();
if (!(gBattleTypeFlags & BATTLE_TYPE_IS_MASTER) && gBattleTypeFlags & BATTLE_TYPE_LINK)
gBattlerControllerFuncs[gActiveBattler] = Pokedude_SetBattleEndCallbacks;
@@ -1993,7 +1993,7 @@ static void PokedudeCmdEnd(void)
struct PokedudeInputScript
{
- // 0-3 for selection, 4 to repeat, 255 to end
+ // 0-3 for selection, 4 to repeat action, 255 to repeat move
u8 cursorPos[MAX_BATTLERS_COUNT];
u8 delay[MAX_BATTLERS_COUNT];
};
@@ -2425,13 +2425,6 @@ static const struct PokedudeBattlePartyInfo *const sPokedudeBattlePartyPointers[
struct PokedudeBattlerState *gPokedudeBattlerStates[MAX_BATTLERS_COUNT];
-#define PD_BTL_STATE(battler, idx) gPokedudeBattlerStates[battler]->idx]
-#define PD_BTL_ACTION(battler) PD_BTL_STATE((battler), 0)
-#define PD_BTL_MOVE(battler) PD_BTL_STATE((battler), 1)
-#define PD_BTL_DELAY(battler) PD_BTL_STATE((battler), 2)
-#define PD_BTL_MSG(battler) PD_BTL_STATE((battler), 3)
-#define PD_BTL_BG0Y(battler) PD_BTL_STATE((battler), 4)
-
static void PokedudeSimulateInputChooseAction(void)
{
const struct PokedudeInputScript *script_p = sInputScripts_ChooseAction[gBattleStruct->pdScriptNum];