Skip to content

Commit

Permalink
Fix HoF dex numbers (#3901)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bassoonian authored Jan 3, 2024
1 parent e2c8ede commit 973dae7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hall_of_fame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 973dae7

Please sign in to comment.