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

@@ -93,6 +93,11 @@ module Settings
# whether the machine's move retains the replaced move's PP (true), or whether
# the machine's move has full PP (false).
TAUGHT_MACHINES_KEEP_OLD_PP = (MECHANICS_GENERATION == 5)
# Whether the Move Relearner can also teach egg moves that the Pokémon knew
# when it hatched and moves that the Pokémon was once taught by a TR. Moves
# from the Pokémon's level-up moveset of the same or a lower level than the
# Pokémon can always be relearned.
MOVE_RELEARNER_CAN_TEACH_MORE_MOVES = (MECHANICS_GENERATION >= 6)
# Whether various HP-healing items heal the amounts they do in Gen 7+ (true)
# or in earlier Generations (false).
REBALANCED_HEALING_ITEM_AMOUNTS = (MECHANICS_GENERATION >= 7)

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
if Settings::MOVE_RELEARNER_CAN_TEACH_MORE_MOVES && pkmn.first_moves
tmoves = []
if pkmn.first_moves
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

View File

@@ -397,5 +397,5 @@ VictoryME = Battle victory leader
Name = Champion
Gender = Male
BaseMoney = 100
BattleBGM = Battle Elite
BattleBGM = Battle Champion
VictoryME = Battle victory leader