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
@ -5276,14 +5276,30 @@ static bool8 CalculateMoves(void)
|
|||||||
{
|
{
|
||||||
sStatsMovesTMHM_ID[numTMHMMoves] = (ITEM_TM01 + j);
|
sStatsMovesTMHM_ID[numTMHMMoves] = (ITEM_TM01 + j);
|
||||||
numTMHMMoves++;
|
numTMHMMoves++;
|
||||||
|
|
||||||
|
sStatsMoves[movesTotal] = move;
|
||||||
|
movesTotal++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (j >= NUM_TECHNICAL_MACHINES + NUM_HIDDEN_MACHINES)
|
}
|
||||||
numTutorMoves++;
|
|
||||||
|
|
||||||
sStatsMoves[movesTotal] = move;
|
for (i = 0; gTeachableLearnsets[species][i] != MOVE_UNAVAILABLE; i++)
|
||||||
movesTotal++;
|
{
|
||||||
|
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;
|
sPokedexView->numEggMoves = numEggMoves;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user