Updated Changing the Battle Music Depending on the Opponent (markdown)

smithk200 2023-11-09 15:38:39 -06:00
parent dad369812d
commit ab2d0612bf
1 changed files with 3 additions and 1 deletions

@ -4,7 +4,9 @@ For this tutorial, I'm going to replace Sidney of the Elite Four's battle with t
Open src/pokemon.c. Open src/pokemon.c.
Search for `u16 GetBattleBGM(void)`. Underneath the last `#include`, add `#include "constants/opponents.h"` on a new line. THIS IS IMPORTANT! DON'T FORGET TO ADD THIS OTHERWISE YOUR COMPILER WILL THROW AN ERROR!
Next, search for `u16 GetBattleBGM(void)`.
In the `switch (trainerClass)` statement, add a statement like this: In the `switch (trainerClass)` statement, add a statement like this:
```diff ```diff