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_rateInteger (readonly)

Encounter rate of the creature in its group

Returns:

  • (Integer)


304
305
306
# File 'docs/3_Studio.rb', line 304

def encounter_rate
  @encounter_rate
end

#extraHash (readonly)

Additional info for the creature (to generate it)

Returns:

  • (Hash)


307
308
309
# File 'docs/3_Studio.rb', line 307

def extra
  @extra
end

#formInteger (readonly)

Form of the creature that should be encountered

Returns:

  • (Integer)


295
296
297
# File 'docs/3_Studio.rb', line 295

def form
  @form
end

#level_setupLevelSetup (readonly)

Level setup of the creature that should be encountered

Returns:



301
302
303
# File 'docs/3_Studio.rb', line 301

def level_setup
  @level_setup
end

#shiny_setupShinySetup (readonly)

Shiny attribute setup for the creature

Returns:



298
299
300
# File 'docs/3_Studio.rb', line 298

def shiny_setup
  @shiny_setup
end

#specieSymbol (readonly)

db_symbol of the creature that should be encountered

Returns:

  • (Symbol)


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

Parameters:

  • level (Integer) (defaults to: nil)

    level generated through outside factor (ability / other)

Returns:



311
312
# File 'docs/3_Studio.rb', line 311

def to_creature(level = nil)
end