Fix HGSS Pokédex teachable moves list. (#3624)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
parent
f7ca839f23
commit
7f0b1da561
1 changed files with 20 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue