mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
main menu & save lag fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user