mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Created and implemented GameData::Species
This commit is contained in:
@@ -251,11 +251,11 @@ class PokemonEncounters
|
||||
if favoredType
|
||||
newEncList = []
|
||||
newChances = []
|
||||
speciesData = pbLoadSpeciesData
|
||||
for i in 0...encList.length
|
||||
t1 = speciesData[encList[i][0]][SpeciesData::TYPE1]
|
||||
t2 = speciesData[encList[i][0]][SpeciesData::TYPE2]
|
||||
next if t1!=favoredType && (!t2 || t2!=favoredType)
|
||||
speciesData = GameData::Species.get(encList[i][0])
|
||||
t1 = speciesData.type1
|
||||
t2 = speciesData.type2
|
||||
next if t1 != favoredType && (!t2 || t2 != favoredType)
|
||||
newEncList.push(encList[i])
|
||||
newChances.push(chances[i])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user