Fixed up text positioning and window sizes, fixed crash when choosing how many items to toss from the Bag

This commit is contained in:
Maruno17
2021-03-07 23:08:05 +00:00
parent 3ca08f27b8
commit 4c35a7ecfe
31 changed files with 342 additions and 438 deletions

View File

@@ -653,6 +653,14 @@ class Pokemon
return move_data && species_data.tutor_moves.include?(move_data.id)
end
def can_relearn_move?
return false if egg? || shadowPokemon?
this_level = self.level
getMoveList.each { |m| return true if m[0] <= this_level && !hasMove?(m[1]) }
@first_moves.each { |m| return true if !pkmn.hasMove?(m) }
return false
end
#=============================================================================
# Ribbons
#=============================================================================