Class: Studio::Group::Encounter

Inherits:
Object
  • Object
show all
Defined in:
docs/3_Studio.rb

Overview

Data class describing an Encounter for a wild group

Defined Under Namespace

Classes: LevelSetup, ShinySetup

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#encounter_rate ⇒ Integer (readonly)

Encounter rate of the creature in its group

Returns:

  • (Integer)


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)

Returns:

  • (Hash)


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

Returns:

  • (Integer)


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

Returns:



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

Returns:



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

Returns:

  • (Symbol)


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

Parameters:

  • level (Integer) (defaults to: nil) —

    level generated through outside factor (ability / other)

Returns:



332
333
# File 'docs/3_Studio.rb', line 332

def to_creature(level = nil)
end