mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Moved species data constants into module SpeciesData
This commit is contained in:
@@ -327,12 +327,12 @@ class PokemonPokedex_Scene
|
||||
if pbCanAddForModeList?($PokemonGlobal.pokedexMode,nationalSpecies)
|
||||
form = $Trainer.formlastseen[nationalSpecies][1] || 0
|
||||
fspecies = pbGetFSpeciesFromForm(nationalSpecies,form)
|
||||
color = speciesData[fspecies][SpeciesColor] || 0
|
||||
type1 = speciesData[fspecies][SpeciesType1] || 0
|
||||
type2 = speciesData[fspecies][SpeciesType2] || type1
|
||||
shape = speciesData[fspecies][SpeciesShape] || 0
|
||||
height = speciesData[fspecies][SpeciesHeight] || 1
|
||||
weight = speciesData[fspecies][SpeciesWeight] || 1
|
||||
color = speciesData[fspecies][SpeciesData::COLOR] || 0
|
||||
type1 = speciesData[fspecies][SpeciesData::TYPE1] || 0
|
||||
type2 = speciesData[fspecies][SpeciesData::TYPE2] || type1
|
||||
shape = speciesData[fspecies][SpeciesData::SHAPE] || 0
|
||||
height = speciesData[fspecies][SpeciesData::HEIGHT] || 1
|
||||
weight = speciesData[fspecies][SpeciesData::WEIGHT] || 1
|
||||
shift = DEXES_WITH_OFFSETS.include?(region)
|
||||
dexlist.push([nationalSpecies,PBSpecies.getName(nationalSpecies),
|
||||
height,weight,i,shift,type1,type2,color,shape])
|
||||
|
||||
@@ -142,7 +142,7 @@ class PokemonPokedexInfo_Scene
|
||||
@sprites["formback"].setSpeciesBitmap(@species,(@gender==1),@form,false,false,true)
|
||||
@sprites["formback"].y = 256
|
||||
fSpecies = pbGetFSpeciesFromForm(@species,@form)
|
||||
@sprites["formback"].y += (pbLoadSpeciesMetrics[MetricBattlerPlayerY][fSpecies] || 0)*2
|
||||
@sprites["formback"].y += (pbLoadSpeciesMetrics[SpeciesData::METRIC_PLAYER_Y][fSpecies] || 0)*2
|
||||
end
|
||||
if @sprites["formicon"]
|
||||
@sprites["formicon"].pbSetParams(@species,@gender,@form)
|
||||
@@ -158,7 +158,7 @@ class PokemonPokedexInfo_Scene
|
||||
for i in 0...formdata[@species].length
|
||||
fSpecies = pbGetFSpeciesFromForm(@species,i)
|
||||
formname = pbGetMessage(MessageTypes::FormNames,fSpecies)
|
||||
genderRate = pbGetSpeciesData(@species,i,SpeciesGenderRate)
|
||||
genderRate = pbGetSpeciesData(@species,i,SpeciesData::GENDER_RATE)
|
||||
if i==0 || (formname && formname!="")
|
||||
multiforms = true if i>0
|
||||
case genderRate
|
||||
@@ -248,8 +248,8 @@ class PokemonPokedexInfo_Scene
|
||||
kind = pbGetMessage(MessageTypes::Kinds,@species) if !kind || kind==""
|
||||
textpos.push([_INTL("{1} Pokémon",kind),246,74,0,base,shadow])
|
||||
# Write the height and weight
|
||||
height = speciesData[SpeciesHeight] || 1
|
||||
weight = speciesData[SpeciesWeight] || 1
|
||||
height = speciesData[SpeciesData::HEIGHT] || 1
|
||||
weight = speciesData[SpeciesData::WEIGHT] || 1
|
||||
if pbGetCountry==0xF4 # If the user is in the United States
|
||||
inches = (height/0.254).round
|
||||
pounds = (weight/0.45359).round
|
||||
@@ -273,8 +273,8 @@ class PokemonPokedexInfo_Scene
|
||||
# Show the owned icon
|
||||
imagepos.push(["Graphics/Pictures/Pokedex/icon_own",212,44])
|
||||
# Draw the type icon(s)
|
||||
type1 = speciesData[SpeciesType1] || 0
|
||||
type2 = speciesData[SpeciesType2] || type1
|
||||
type1 = speciesData[SpeciesData::TYPE1] || 0
|
||||
type2 = speciesData[SpeciesData::TYPE2] || type1
|
||||
type1rect = Rect.new(0,type1*32,96,32)
|
||||
type2rect = Rect.new(0,type2*32,96,32)
|
||||
overlay.blt(296,120,@typebitmap.bitmap,type1rect)
|
||||
|
||||
Reference in New Issue
Block a user