Skip to content

Commit

Permalink
Update enums for renamed safari variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyniikal committed Dec 29, 2024
1 parent 5d7a0c9 commit 05da537
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/constants/battle.h
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,9 @@ typedef enum ControllerCommand {
CONTROLLER_COMMAND_POKEMON_INPUT, // 15
CONTROLLER_COMMAND_RUN_INPUT,
CONTROLLER_COMMAND_SAFARI_THROW_BALL,
CONTROLLER_COMMAND_SAFARI_THROW_BAIT,
CONTROLLER_COMMAND_SAFARI_THROW_MUD,
CONTROLLER_COMMAND_SAFARI_RUN,
CONTROLLER_COMMAND_SAFARI_WATCHING, // 20
CONTROLLER_COMMAND_SAFARI_RUN, // 20
CONTROLLER_COMMAND_CATCHING_CONSTEST_THROW_BALL,
CONTROLLER_COMMAND_RUN_SCRIPT,
CONTROLLER_COMMAND_23,
Expand Down
12 changes: 6 additions & 6 deletions src/battle/battle_controller_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ static const ControllerFunction sPlayerBattleCommands[CONTROLLER_COMMAND_MAX] =
[CONTROLLER_COMMAND_POKEMON_INPUT] = BattleControllerPlayer_PokemonInput,
[CONTROLLER_COMMAND_RUN_INPUT] = BattleControllerPlayer_RunInput,
[CONTROLLER_COMMAND_SAFARI_THROW_BALL] = BattleControllerPlayer_SafariThrowBall,
[CONTROLLER_COMMAND_SAFARI_THROW_MUD] = BattleControllerPlayer_SafariThrowBait,
[CONTROLLER_COMMAND_SAFARI_RUN] = BattleControllerPlayer_SafariThrowMud,
[CONTROLLER_COMMAND_SAFARI_WATCHING] = BattleControllerPlayer_SafariRun,
[CONTROLLER_COMMAND_SAFARI_THROW_BAIT] = BattleControllerPlayer_SafariThrowBait,
[CONTROLLER_COMMAND_SAFARI_THROW_MUD] = BattleControllerPlayer_SafariThrowMud,
[CONTROLLER_COMMAND_SAFARI_RUN] = BattleControllerPlayer_SafariRun,
[CONTROLLER_COMMAND_CATCHING_CONSTEST_THROW_BALL] = BattleControllerPlayer_CatchingContestThrowBall,
[CONTROLLER_COMMAND_RUN_SCRIPT] = BattleControllerPlayer_RunScript,
[CONTROLLER_COMMAND_23] = ov12_0224C38C,
Expand Down Expand Up @@ -348,12 +348,12 @@ static void BattleControllerPlayer_SelectionScreenInput(BattleSystem *bsys, Batt
case 2:
ctx->unk_0[battlerId] = SSI_STATE_END;
ctx->unk_4[battlerId] = SSI_STATE_13;
ctx->playerActions[battlerId].command = CONTROLLER_COMMAND_SAFARI_THROW_MUD;
ctx->playerActions[battlerId].command = CONTROLLER_COMMAND_SAFARI_THROW_BAIT;
break;
case 3:
ctx->unk_0[battlerId] = SSI_STATE_END;
ctx->unk_4[battlerId] = SSI_STATE_13;
ctx->playerActions[battlerId].command = CONTROLLER_COMMAND_SAFARI_RUN;
ctx->playerActions[battlerId].command = CONTROLLER_COMMAND_SAFARI_THROW_MUD;
break;
case 4:
ctx->unk_0[battlerId] = SSI_STATE_END;
Expand All @@ -363,7 +363,7 @@ static void BattleControllerPlayer_SelectionScreenInput(BattleSystem *bsys, Batt
case 5:
ctx->unk_0[battlerId] = SSI_STATE_END;
ctx->unk_0[battlerId] = SSI_STATE_13;
ctx->playerActions[battlerId].command = CONTROLLER_COMMAND_SAFARI_WATCHING;
ctx->playerActions[battlerId].command = CONTROLLER_COMMAND_SAFARI_RUN;
break;
}
} else {
Expand Down

0 comments on commit 05da537

Please sign in to comment.