From e4e63a0cd90f04ec93329e8148edccc8e7c5c173 Mon Sep 17 00:00:00 2001 From: cawtds <38510667+cawtds@users.noreply.github.com> Date: Sun, 4 Aug 2024 01:20:59 +0200 Subject: [PATCH] ow config for tera type in pokemon summary --- src/pokemon_summary_screen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pokemon_summary_screen.c b/src/pokemon_summary_screen.c index edb2ca546..5ecf3d5ff 100644 --- a/src/pokemon_summary_screen.c +++ b/src/pokemon_summary_screen.c @@ -200,7 +200,7 @@ struct PokemonSummaryScreenData u8 ALIGNED(4) curPageIndex; /* 0x3214 */ u8 ALIGNED(4) unk3218; /* 0x3218 */ u8 ALIGNED(4) isBoxMon; /* 0x321C */ - u8 ALIGNED(4) monTypes[2]; /* 0x3220 */ + u8 ALIGNED(4) monTypes[3]; /* 0x3220 */ u8 ALIGNED(4) pageFlipDirection; /* 0x3224 */ u8 ALIGNED(4) unk3228; /* 0x3228 */ @@ -2188,6 +2188,7 @@ static void BufferMonInfo(void) sMonSummaryScreen->monTypes[0] = gSpeciesInfo[dexNum].types[0]; sMonSummaryScreen->monTypes[1] = gSpeciesInfo[dexNum].types[1]; + sMonSummaryScreen->monTypes[2] = GetMonData(&sMonSummaryScreen->currentMon, MON_DATA_TERA_TYPE); GetMonData(&sMonSummaryScreen->currentMon, MON_DATA_NICKNAME, tempStr); StringCopyN_Multibyte(sMonSummaryScreen->summary.nicknameStrBuf, tempStr, POKEMON_NAME_LENGTH); @@ -3665,6 +3666,8 @@ static void PokeSum_PrintMonTypeIcons(void) if (sMonSummaryScreen->monTypes[0] != sMonSummaryScreen->monTypes[1]) BlitMenuInfoIcon(sMonSummaryScreen->windowIds[POKESUM_WIN_RIGHT_PANE], sMonSummaryScreen->monTypes[1] + 1, 83, 35); + if (P_SHOW_TERA_TYPE == GEN_9 && sMonSummaryScreen->monTypes[2] != TYPE_NONE) + BlitMenuInfoIcon(sMonSummaryScreen->windowIds[POKESUM_WIN_RIGHT_PANE], sMonSummaryScreen->monTypes[2] + 1, 83, 5); } break; case PSS_PAGE_SKILLS: