From 5c658c695007a6ebb913bfb970e55a0ee2ee33aa Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 17 Nov 2020 20:26:09 -0700 Subject: [PATCH] config option for terrain bg change --- include/constants/battle_config.h | 1 + src/battle_anim.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/constants/battle_config.h b/include/constants/battle_config.h index d7f1785709..fc1e0d54e4 100644 --- a/include/constants/battle_config.h +++ b/include/constants/battle_config.h @@ -164,5 +164,6 @@ #define B_NEW_SURF_PARTICLE_PALETTE TRUE // If set to TRUE, it updates Surf's wave palette. #define HIDE_HEALTHBOXES_DURING_ANIMS TRUE //if TRUE, hides healthboxes during move animations +#define B_TERRAIN_BG_CHANGE TRUE //if TRUE, terrain moves permanently change the default battle bg until the effect fades #endif // GUARD_CONSTANTS_BATTLE_CONFIG_H diff --git a/src/battle_anim.c b/src/battle_anim.c index 9f914f1e88..cb7ea5bea0 100644 --- a/src/battle_anim.c +++ b/src/battle_anim.c @@ -3204,8 +3204,10 @@ static void LoadDefaultBg(void) { if (IsContest()) LoadContestBgAfterMoveAnim(); + #if B_TERRAIN_BG_CHANGE == TRUE else if (gFieldStatuses & STATUS_TERRAIN_ANY) DrawTerrainTypeBattleBackground(); + #endif else DrawMainBattleBackground(); }