Added a Setting to toggle whether the Move Reminder can teach previously known egg moves/TRs

This commit is contained in:
Maruno17
2022-05-13 21:12:47 +01:00
parent 7a88d47b4b
commit 1caedc0ed2
3 changed files with 10 additions and 5 deletions

View File

@@ -154,13 +154,13 @@ class MoveRelearnerScreen
next if m[0] > pkmn.level || pkmn.hasMove?(m[1])
moves.push(m[1]) if !moves.include?(m[1])
end
tmoves = []
if pkmn.first_moves
if Settings::MOVE_RELEARNER_CAN_TEACH_MORE_MOVES && pkmn.first_moves
tmoves = []
pkmn.first_moves.each do |i|
tmoves.push(i) if !pkmn.hasMove?(i) && !moves.include?(i)
tmoves.push(i) if !moves.include?(i) && !pkmn.hasMove?(i)
end
moves = tmoves + moves # List first moves before level-up moves
end
moves = tmoves + moves
return moves | [] # remove duplicates
end