Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Soul-8691 committed Apr 13, 2020
1 parent a046cf4 commit 355b210
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/learn_move.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
* Move relearner state machine
* ------------------------
*
* CB2_MoveRelearner_Init
* - Creates moveDisplayArrowTask to listen to right/left buttons.
* - Creates moveListScrollArrowTask to listen to up/down buttons.
* - Whenever the selected move changes (and once on init), the MoveRelearnerCursorCallback
* is called (see sMoveRelearnerMovesListTemplate). That callback will reload the contest
* display and battle display windows for the new move. Both are always loaded in
* memory, but only the currently active one is copied to VRAM. The exception to this
* is the appeal and jam hearts, which are sprites. MoveRelearnerShowHideHearts is called
* while reloading the contest display to control them.
* MoveRelearnerStateMachine: MENU_STATE_FADE_TO_BLACK
* MoveRelearnerStateMachine: MENU_STATE_WAIT_FOR_FADE
* - Go to MENU_STATE_IDLE_BATTLE_MODE
Expand Down Expand Up @@ -70,7 +79,7 @@
* - If the player cancels, go to MENU_STATE_SETUP_BATTLE_MODE.
*
* CB2_MoveRelearner_Resume:
* - Do most of the same stuff as CB2_InitLearnMove.
* - Do most of the same stuff as CB2_MoveRelearner_Init.
* MoveRelearnerStateMachine: MENU_STATE_FADE_FROM_SUMMARY_SCREEN
* MoveRelearnerStateMachine: MENU_STATE_TRY_OVERWRITE_MOVE
* - If any of the pokemon's existing moves were chosen, overwrite the move and
Expand Down

0 comments on commit 355b210

Please sign in to comment.