Class: Studio::CreatureForm::Evolution
- Defined in:
- scripts/00800 Studio/00001 Data/00042 CreatureForm.rb
Overview
Data class describing an evolution
Instance Attribute Summary collapse
-
#conditions ⇒ Array<Hash>
readonly
Conditions of the evolution.
-
#db_symbol ⇒ Symbol
readonly
db_symbol of the creature to evolve to.
-
#form ⇒ Integer
readonly
Form of the creature to evolve to.
Instance Method Summary collapse
-
#condition_data(type) ⇒ Symbol, Integer
Get data by condition.
Instance Attribute Details
#conditions ⇒ Array<Hash> (readonly)
Conditions of the evolution
142 143 144 |
# File 'scripts/00800 Studio/00001 Data/00042 CreatureForm.rb', line 142 def conditions @conditions end |
#db_symbol ⇒ Symbol (readonly)
db_symbol of the creature to evolve to
134 135 136 |
# File 'scripts/00800 Studio/00001 Data/00042 CreatureForm.rb', line 134 def db_symbol @db_symbol end |
#form ⇒ Integer (readonly)
Form of the creature to evolve to
138 139 140 |
# File 'scripts/00800 Studio/00001 Data/00042 CreatureForm.rb', line 138 def form @form end |
Instance Method Details
#condition_data(type) ⇒ Symbol, Integer
Get data by condition
147 148 149 150 |
# File 'scripts/00800 Studio/00001 Data/00042 CreatureForm.rb', line 147 def condition_data(type) condition = @conditions.find { |cdn| cdn[:type] == type } return condition && condition[:value] end |