main menu & save lag fix

This commit is contained in:
infinitefusion
2021-07-31 20:56:40 -04:00
parent 4354cc778a
commit 960867dc7d
3 changed files with 9 additions and 7 deletions

View File

@@ -267,13 +267,14 @@ class Player < Trainer
# @param region [Integer]
# @return [Integer]
def count_species(hash, region = -1)
ret = 0
if region == -1
GameData::Species.each { |s| ret += 1 if s.form == 0 && hash[s.species] }
else
pbAllRegionalSpecies(region).each { |s| ret += 1 if s && hash[s] }
end
return ret
return hash.size()
# ret = 0
# if region == -1
# GameData::Species.each { |s| ret += 1 if s.form == 0 && hash[s.species] }
# else
# pbAllRegionalSpecies(region).each { |s| ret += 1 if s && hash[s] }
# end
# return ret
end
end
end

View File

@@ -51,6 +51,7 @@ class PokemonSave_Scene
if $Trainer.has_pokedex
loctext+=_INTL("Pokédex<r><c3={1}>{2}/{3}</c3>",textColor,$Trainer.pokedex.owned_count,$Trainer.pokedex.seen_count)
end
@sprites["locwindow"]=Window_AdvancedTextPokemon.new(loctext)
@sprites["locwindow"].viewport=@viewport
@sprites["locwindow"].x=0

Binary file not shown.