Class: GameData::Pokemon
- Extended by:
- DataSource2D
- Defined in:
- scripts/00800 GameData/00100 Serializable/00200 Pokemon.rb
Overview
Pokemon Data Structure
Constant Summary
Constants included from DataSource
Instance Attribute Summary collapse
-
#abilities ⇒ Array(Integer, Integer, Integer)
List of ability id the Pokemon can have [common, rare, ultra rare].
-
#baby ⇒ Integer
ID of the baby the Pokemon can have while breeding.
-
#base_atk ⇒ Integer
ATK statistic of the Pokemon.
-
#base_ats ⇒ Integer
ATS statistic of the Pokemon.
-
#base_dfe ⇒ Integer
DFE statistic of the Pokemon.
-
#base_dfs ⇒ Integer
DFS statistic of the Pokemon.
-
#base_exp ⇒ Integer
Base experience the Pokemon give when defeated (used in the exp caculation).
-
#base_hp ⇒ Integer
HP statistic of the Pokemon.
-
#base_loyalty ⇒ Integer
Loyalty the Pokemon has at the begining.
-
#base_spd ⇒ Integer
SPD statistic of the Pokemon.
-
#breed_groupes ⇒ Array(Integer, Integer)
The two groupes of compatibility for breeding.
-
#breed_moves ⇒ Array<Integer>
List of move ID the Pokemon can have after hatching if one of its parent has the move.
-
#ev_atk ⇒ Integer
ATK EVs givent by the Pokemon when defeated.
-
#ev_ats ⇒ Integer
ATS EVs givent by the Pokemon when defeated.
-
#ev_dfe ⇒ Integer
DFE EVs givent by the Pokemon when defeated.
-
#ev_dfs ⇒ Integer
DFS EVs givent by the Pokemon when defeated.
-
#ev_hp ⇒ Integer
HP EVs givent by the Pokemon when defeated.
-
#ev_spd ⇒ Integer
SPD EVs givent by the Pokemon when defeated.
-
#evolution_id ⇒ Integer
ID of the Pokemon after its evolution.
-
#evolution_level ⇒ Integer?
Level when the Pokemon can naturally evolve.
-
#exp_type ⇒ Integer
Index of the Pokemon exp curve (GameData::EXP_TABLE).
-
#female_rate ⇒ Integer
Chance in % the Pokemon has to be a female, if -1 it'll have no gender.
-
#form ⇒ Integer
Current form of the Pokemon.
-
#front_offset_y ⇒ Integer
Front offset y of the Pokemon for Summary & Dex UI.
-
#hatch_step ⇒ Integer
Number of step before the egg hatch.
-
#height ⇒ Numeric
Height of the Pokemon in metter.
-
#id_bis ⇒ Integer
Regional id of the Pokemon.
-
#items ⇒ Array<Integer, Integer>
List of items with change (in percent) the Pokemon can have when generated List formated like this : [id item1, chance item1, id item2, chance item2, …].
-
#master_moves ⇒ Array<Integer>
List of moves the Pokemon can learn from a NPC.
-
#move_set ⇒ Array<Integer, Integer>
List of moves the Pokemon can learn by level.
-
#rareness ⇒ Integer
Factor used during the catch_rate calculation.
-
#special_evolution ⇒ Array<Hash>?
Special evolution informations.
-
#tech_set ⇒ Array<Integer>
List of moves (id in the database) the Pokemon can learn by using HM and TM.
-
#type1 ⇒ Integer
First type of the Pokemon.
-
#type2 ⇒ Integer
Second type of the Pokemon.
-
#weight ⇒ Numeric
Weight of the Pokemon in Kg.
Attributes inherited from Base
Class Method Summary collapse
-
.data_filename
Name of the file containing the data.
-
.get_forms(id) ⇒ Array<GameData::Pokemon>
Safely return the list of Form of the Pokemon including the regular form (index = 0).
-
.spawn_zones(id) ⇒ Array<Integer>
Return the list of the zone id where the pokemon spawn.
Instance Method Summary collapse
-
#descr ⇒ String
Description of the Pokemon.
-
#initialize ⇒ Pokemon
constructor
Create a new GameData::Pokemon object.
-
#name ⇒ String
Name of the Pokemon.
-
#species ⇒ String
Species of the Pokemon.
Methods included from DataSource2D
Methods included from DataSource
#[], #all, #convert_to_symbols, #db_symbol, #get_id, #id_valid?, #load
Constructor Details
#initialize ⇒ Pokemon
Create a new GameData::Pokemon object
Instance Attribute Details
#abilities ⇒ Array(Integer, Integer, Integer)
List of ability id the Pokemon can have [common, rare, ultra rare]
#baby ⇒ Integer
ID of the baby the Pokemon can have while breeding
#base_atk ⇒ Integer
ATK statistic of the Pokemon
#base_ats ⇒ Integer
ATS statistic of the Pokemon
#base_dfe ⇒ Integer
DFE statistic of the Pokemon
#base_dfs ⇒ Integer
DFS statistic of the Pokemon
#base_exp ⇒ Integer
Base experience the Pokemon give when defeated (used in the exp caculation)
#base_hp ⇒ Integer
HP statistic of the Pokemon
#base_loyalty ⇒ Integer
Loyalty the Pokemon has at the begining
#base_spd ⇒ Integer
SPD statistic of the Pokemon
#breed_groupes ⇒ Array(Integer, Integer)
The two groupes of compatibility for breeding. If it includes 15, there's no compatibility.
#breed_moves ⇒ Array<Integer>
List of move ID the Pokemon can have after hatching if one of its parent has the move
#ev_atk ⇒ Integer
ATK EVs givent by the Pokemon when defeated
#ev_ats ⇒ Integer
ATS EVs givent by the Pokemon when defeated
#ev_dfe ⇒ Integer
DFE EVs givent by the Pokemon when defeated
#ev_dfs ⇒ Integer
DFS EVs givent by the Pokemon when defeated
#ev_hp ⇒ Integer
HP EVs givent by the Pokemon when defeated
#ev_spd ⇒ Integer
SPD EVs givent by the Pokemon when defeated
#evolution_id ⇒ Integer
ID of the Pokemon after its evolution
#evolution_level ⇒ Integer?
Level when the Pokemon can naturally evolve
#exp_type ⇒ Integer
Index of the Pokemon exp curve (GameData::EXP_TABLE)
#female_rate ⇒ Integer
Chance in % the Pokemon has to be a female, if -1 it'll have no gender.
#form ⇒ Integer
Current form of the Pokemon
#front_offset_y ⇒ Integer
Front offset y of the Pokemon for Summary & Dex UI
#hatch_step ⇒ Integer
Number of step before the egg hatch
#height ⇒ Numeric
Height of the Pokemon in metter
#id_bis ⇒ Integer
Regional id of the Pokemon
#items ⇒ Array<Integer, Integer>
List of items with change (in percent) the Pokemon can have when generated
List formated like this : [id item1, chance item1, id item2, chance item2, ...]
#master_moves ⇒ Array<Integer>
List of moves the Pokemon can learn from a NPC
#move_set ⇒ Array<Integer, Integer>
List of moves the Pokemon can learn by level.
List formated like this : level_move1, id_move1, level_move2, id_move2, ...
#rareness ⇒ Integer
Factor used during the catch_rate calculation
#special_evolution ⇒ Array<Hash>?
Special evolution informations
#tech_set ⇒ Array<Integer>
List of moves (id in the database) the Pokemon can learn by using HM and TM
#type1 ⇒ Integer
First type of the Pokemon
#type2 ⇒ Integer
Second type of the Pokemon
#weight ⇒ Numeric
Weight of the Pokemon in Kg
Class Method Details
.data_filename
Name of the file containing the data
.get_forms(id) ⇒ Array<GameData::Pokemon>
Safely return the list of Form of the Pokemon including the regular form (index = 0)
.spawn_zones(id) ⇒ Array<Integer>
Return the list of the zone id where the pokemon spawn