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
304 305 306 |
# File 'docs/3_Studio.rb', line 304 def encounter_rate @encounter_rate end |
#extra ⇒ Hash (readonly)
Additional info for the creature (to generate it)
307 308 309 |
# File 'docs/3_Studio.rb', line 307 def extra @extra end |
#form ⇒ Integer (readonly)
Form of the creature that should be encountered
295 296 297 |
# File 'docs/3_Studio.rb', line 295 def form @form end |
#level_setup ⇒ LevelSetup (readonly)
Level setup of the creature that should be encountered
301 302 303 |
# File 'docs/3_Studio.rb', line 301 def level_setup @level_setup end |
#shiny_setup ⇒ ShinySetup (readonly)
Shiny attribute setup for the creature
298 299 300 |
# File 'docs/3_Studio.rb', line 298 def shiny_setup @shiny_setup end |
#specie ⇒ Symbol (readonly)
db_symbol of the creature that should be encountered
292 293 294 |
# File 'docs/3_Studio.rb', line 292 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
314 315 |
# File 'docs/3_Studio.rb', line 314 def generic_form_generation end |
#to_creature(level = nil) ⇒ PFM::Pokemon
Convert the encounter to an actual creature
311 312 |
# File 'docs/3_Studio.rb', line 311 def to_creature(level = nil) end |