mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
The Pokédex entry of a newly obtained species now only shows if that species is in an unlocked Dex list
This commit is contained in:
@@ -108,7 +108,8 @@ class PokemonEggHatch_Scene
|
||||
$player.pokedex.set_owned(@pokemon.species)
|
||||
$player.pokedex.set_seen_egg(@pokemon.species)
|
||||
# Show Pokédex entry for new species if it hasn't been owned before
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned && $player.has_pokedex
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned &&
|
||||
$player.has_pokedex && $player.pokedex.species_in_unlocked_dex?(@pokemon.species)
|
||||
pbMessage(_INTL("{1}'s data was added to the Pokédex.", @pokemon.name)) { update }
|
||||
$player.pokedex.register_last_seen(@pokemon)
|
||||
pbFadeOutIn do
|
||||
@@ -227,7 +228,8 @@ def pbHatch(pokemon)
|
||||
$player.pokedex.set_owned(pokemon.species)
|
||||
$player.pokedex.set_seen_egg(pokemon.species)
|
||||
# Show Pokédex entry for new species if it hasn't been owned before
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned && $player.has_pokedex
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned &&
|
||||
$player.has_pokedex && $player.pokedex.species_in_unlocked_dex?(pokemon.species)
|
||||
pbMessage(_INTL("{1}'s data was added to the Pokédex.", speciesname))
|
||||
$player.pokedex.register_last_seen(pokemon)
|
||||
pbFadeOutIn do
|
||||
|
||||
@@ -230,7 +230,8 @@ class PokemonEvolutionScene
|
||||
moves_to_learn.push(i[1])
|
||||
end
|
||||
# Show Pokédex entry for new species if it hasn't been owned before
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned && $player.has_pokedex
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned &&
|
||||
$player.has_pokedex && $player.pokedex.species_in_unlocked_dex?(@pokemon.species)
|
||||
pbMessageDisplay(@sprites["msgwindow"],
|
||||
_INTL("{1}'s data was added to the Pokédex.", newspeciesname)) { pbUpdate }
|
||||
$player.pokedex.register_last_seen(@pokemon)
|
||||
|
||||
@@ -191,7 +191,8 @@ class PokemonTrade_Scene
|
||||
pbMessageDisplay(@sprites["msgwindow"],
|
||||
_INTL("Take good care of {1}.", speciesname2)) { pbUpdate }
|
||||
# Show Pokédex entry for new species if it hasn't been owned before
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned && $player.has_pokedex
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned &&
|
||||
$player.has_pokedex && $player.pokedex.species_in_unlocked_dex?(@pokemon2.species)
|
||||
pbMessageDisplay(@sprites["msgwindow"],
|
||||
_INTL("{1}'s data was added to the Pokédex.", speciesname2)) { pbUpdate }
|
||||
$player.pokedex.register_last_seen(@pokemon2)
|
||||
|
||||
@@ -384,7 +384,8 @@ def pbReceiveMysteryGift(id)
|
||||
pbMessage("\\me[Pkmn get]" + _INTL("{1} received {2}!", $player.name, gift[2].name))
|
||||
$player.mystery_gifts[index] = [id]
|
||||
# Show Pokédex entry for new species if it hasn't been owned before
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned && $player.has_pokedex
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned &&
|
||||
$player.has_pokedex && $player.pokedex.species_in_unlocked_dex?(gift[2].species)
|
||||
pbMessage(_INTL("{1}'s data was added to the Pokédex.", gift[2].name))
|
||||
$player.pokedex.register_last_seen(gift[2])
|
||||
pbFadeOutIn do
|
||||
|
||||
Reference in New Issue
Block a user