Fix HGSS Pokédex teachable moves list. (#3624)

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
Zimmermann Gyula 2023-12-06 18:05:04 +01:00 committed by GitHub
parent f7ca839f23
commit 7f0b1da561
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5276,14 +5276,30 @@ static bool8 CalculateMoves(void)
{
sStatsMovesTMHM_ID[numTMHMMoves] = (ITEM_TM01 + j);
numTMHMMoves++;
sStatsMoves[movesTotal] = move;
movesTotal++;
break;
}
}
if (j >= NUM_TECHNICAL_MACHINES + NUM_HIDDEN_MACHINES)
numTutorMoves++;
}
sStatsMoves[movesTotal] = move;
movesTotal++;
for (i = 0; gTeachableLearnsets[species][i] != MOVE_UNAVAILABLE; i++)
{
move = gTeachableLearnsets[species][i];
for (j = 0; j < NUM_TECHNICAL_MACHINES + NUM_HIDDEN_MACHINES; j++)
{
if (ItemIdToBattleMoveId(ITEM_TM01 + j) == move)
break;
}
if (j >= NUM_TECHNICAL_MACHINES + NUM_HIDDEN_MACHINES)
{
numTutorMoves++;
sStatsMoves[movesTotal] = move;
movesTotal++;
}
}
sPokedexView->numEggMoves = numEggMoves;