Class: Studio::Group::Encounter
Overview
Data class describing an Encounter for a wild group
Defined Under Namespace
Classes: LevelSetup, ShinySetup
Instance Attribute Summary collapse
-
#encounter_rate ⇒ Integer
readonly
Encounter rate of the creature in its group.
-
#extra ⇒ Hash
readonly
Additional info for the creature (to generate it).
-
#form ⇒ Integer
readonly
Form of the creature that should be encountered.
-
#level_setup ⇒ LevelSetup
readonly
Level setup of the creature that should be encountered.
-
#shiny_setup ⇒ ShinySetup
readonly
Shiny attribute setup for the creature.
-
#specie ⇒ Symbol
readonly
db_symbol of the creature that should be encountered.
Instance Method Summary collapse
-
#generic_form_generation
Generate generic form generation between 0 and 29 if form == -1 and the Pokemon has not a FORM_GENERATION.
-
#to_creature(level = nil) ⇒ PFM::Pokemon
Convert the encounter to an actual creature.
Instance Attribute Details
#encounter_rate ⇒ Integer (readonly)
Encounter rate of the creature in its group
325 326 327 |
# File 'docs/3_Studio.rb', line 325 def encounter_rate @encounter_rate end |
#extra ⇒ Hash (readonly)
Additional info for the creature (to generate it)
328 329 330 |
# File 'docs/3_Studio.rb', line 328 def extra @extra end |
#form ⇒ Integer (readonly)
Form of the creature that should be encountered
316 317 318 |
# File 'docs/3_Studio.rb', line 316 def form @form end |
#level_setup ⇒ LevelSetup (readonly)
Level setup of the creature that should be encountered
322 323 324 |
# File 'docs/3_Studio.rb', line 322 def level_setup @level_setup end |
#shiny_setup ⇒ ShinySetup (readonly)
Shiny attribute setup for the creature
319 320 321 |
# File 'docs/3_Studio.rb', line 319 def shiny_setup @shiny_setup end |
#specie ⇒ Symbol (readonly)
db_symbol of the creature that should be encountered
313 314 315 |
# File 'docs/3_Studio.rb', line 313 def specie @specie end |
Instance Method Details
#generic_form_generation
Generate generic form generation between 0 and 29 if form == -1 and the Pokemon has not a FORM_GENERATION
335 336 |
# File 'docs/3_Studio.rb', line 335 def generic_form_generation end |
#to_creature(level = nil) ⇒ PFM::Pokemon
Convert the encounter to an actual creature
332 333 |
# File 'docs/3_Studio.rb', line 332 def to_creature(level = nil) end |