Class: GameData::Type
- Extended by:
- DataSource
- Defined in:
- scripts/00800 GameData/00100 Serializable/00300 Type.rb
Overview
Type data structure
Constant Summary collapse
- DEFAULT_NAME =
Name of the unknown type
'???'
Constants included from DataSource
Instance Attribute Summary collapse
-
#on_hit_tbl ⇒ Array<Numeric>
Result multiplier when a offensive type hit on this defensive type.
-
#text_id ⇒ Integer
ID of the text that gives the type name.
Attributes inherited from Base
Class Method Summary collapse
-
.data_filename
Filename of the file containing the data.
Instance Method Summary collapse
-
#hit_by(offensive_type_id) ⇒ Numeric
Return the damage multiplier.
-
#initialize(text_id, on_hit_tbl) ⇒ Type
constructor
Create a new Type.
-
#name ⇒ String
Return the name of the type.
Methods included from DataSource
[], all, convert_to_symbols, db_symbol, get_id, id_valid?, load
Constructor Details
#initialize(text_id, on_hit_tbl) ⇒ Type
Create a new Type
Instance Attribute Details
#on_hit_tbl ⇒ Array<Numeric>
Result multiplier when a offensive type hit on this defensive type
#text_id ⇒ Integer
ID of the text that gives the type name
Class Method Details
.data_filename
Filename of the file containing the data
Instance Method Details
#hit_by(offensive_type_id) ⇒ Numeric
Return the damage multiplier
#name ⇒ String
Return the name of the type