mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Moved species data constants into module SpeciesData
This commit is contained in:
@@ -134,10 +134,11 @@ def pbGetSpeciesData(species, form = 0, species_data_type = -1)
|
||||
end
|
||||
return species_data[s][species_data_type] if species_data[s] && species_data[s][species_data_type]
|
||||
case species_data_type
|
||||
when SpeciesType2; return nil
|
||||
when SpeciesBaseStats; return [1, 1, 1, 1, 1, 1]
|
||||
when SpeciesEffortPoints; return [0, 0, 0, 0, 0, 0]
|
||||
when SpeciesStepsToHatch, SpeciesHeight, SpeciesWeight; return 1
|
||||
when SpeciesData::TYPE2; return nil
|
||||
when SpeciesData::BASE_STATS; return [1, 1, 1, 1, 1, 1]
|
||||
when SpeciesData::EFFORT_POINTS; return [0, 0, 0, 0, 0, 0]
|
||||
when SpeciesData::STEPS_TO_HATCH, SpeciesData::HEIGHT, SpeciesData::WEIGHT
|
||||
return 1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user