mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +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:
@@ -332,6 +332,15 @@ class Player < Trainer
|
||||
end
|
||||
end
|
||||
|
||||
def species_in_unlocked_dex?(species)
|
||||
return true if @unlocked_dexes.last
|
||||
(@unlocked_dexes.length - 1).times do |i|
|
||||
next if !self.unlocked?(i)
|
||||
return true if pbGetRegionalNumber(i, species) > 0
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user