From 973dae73be0df69b1b4f2ee6d133edd9ee9e22e2 Mon Sep 17 00:00:00 2001 From: Bassoonian Date: Wed, 3 Jan 2024 18:48:22 +0000 Subject: [PATCH] Fix HoF dex numbers (#3901) --- src/hall_of_fame.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hall_of_fame.c b/src/hall_of_fame.c index caa497e39551..d0cf6ac9b002 100644 --- a/src/hall_of_fame.c +++ b/src/hall_of_fame.c @@ -1128,6 +1128,12 @@ static void HallOfFame_PrintMonInfo(struct HallofFameMon* currMon, u8 unused1, u dexNumber = SpeciesToPokedexNum(currMon->species); if (dexNumber != 0xFFFF) { + if (IsNationalPokedexEnabled()) + { + stringPtr[0] = (dexNumber / 1000) + CHAR_0; + stringPtr++; + dexNumber %= 1000; + } stringPtr[0] = (dexNumber / 100) + CHAR_0; stringPtr++; dexNumber %= 100;