From ab2d0612bf1783181b5ad2cb2b0f8125ce012ca7 Mon Sep 17 00:00:00 2001 From: smithk200 <116670266+smithk200@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:38:39 -0600 Subject: [PATCH] Updated Changing the Battle Music Depending on the Opponent (markdown) --- Changing-the-Battle-Music-Depending-on-the-Opponent.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Changing-the-Battle-Music-Depending-on-the-Opponent.md b/Changing-the-Battle-Music-Depending-on-the-Opponent.md index 84f273c..b681311 100644 --- a/Changing-the-Battle-Music-Depending-on-the-Opponent.md +++ b/Changing-the-Battle-Music-Depending-on-the-Opponent.md @@ -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. -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: ```diff