Fix HoF dex numbers (#3901)

This commit is contained in:
Bassoonian 2024-01-03 18:48:22 +00:00 committed by GitHub
parent e2c8edeaa6
commit 973dae73be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;