Class: Studio::CreatureForm::Evolution

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

Overview

Data class describing an evolution

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#conditions ⇒ Array<Hash> (readonly)

Conditions of the evolution

Returns:

  • (Array<Hash>)


827
828
829
# File 'docs/3_Studio.rb', line 827

def conditions
  @conditions
end

#db_symbol ⇒ Symbol (readonly)

db_symbol of the creature to evolve to

Returns:

  • (Symbol)


821
822
823
# File 'docs/3_Studio.rb', line 821

def db_symbol
  @db_symbol
end

#form ⇒ Integer (readonly)

Form of the creature to evolve to

Returns:

  • (Integer)


824
825
826
# File 'docs/3_Studio.rb', line 824

def form
  @form
end

Instance Method Details

#condition_data(type) ⇒ Symbol, Integer

Get data by condition

Parameters:

  • type (Symbol) —

    type of condition to check

Returns:

  • (Symbol, Integer)


831
832
# File 'docs/3_Studio.rb', line 831

def condition_data(type)
end