Module: GameData::Abilities
- Defined in:
- scripts/00800 GameData/00200 Helpers/00200 Abilities.rb
Overview
Module that helps you to retrieve safely texts related to Pokemon's Ability
Class Method Summary collapse
-
.convert_to_symbols(collection, keys: false, values: false) ⇒ Enumerable
Convert a collection to symbolized collection.
-
.db_symbol(id) ⇒ Symbol
Returns the symbol of an ability.
-
.descr(id) ⇒ String
Returns the description of an ability.
-
.find_using_symbol(symbol) ⇒ Integer?
(also: get_id)
Find an ability id using symbol.
-
.id_valid?(id) ⇒ Boolean
Tell if the id is valid.
-
.load
Load the abilities.
-
.load_ability_db_symbol ⇒ Array<Symbol>
Load the ability db_symbol.
-
.name(id = Class) ⇒ String
Returns the name of an ability.
-
.psdk_id_to_gf_id ⇒ Array<Integer>
Return the psdk_id_to_gf_id array.
Class Method Details
.convert_to_symbols(collection, keys: false, values: false) ⇒ Enumerable
Convert a collection to symbolized collection
.db_symbol(id) ⇒ Symbol
Returns the symbol of an ability
.descr(id) ⇒ String
Note:
The description is fetched from the 5th text file.
Returns the description of an ability
.find_using_symbol(symbol) ⇒ Integer? Also known as: get_id
Find an ability id using symbol
.id_valid?(id) ⇒ Boolean
Tell if the id is valid
.load
Load the abilities
.load_ability_db_symbol ⇒ Array<Symbol>
Load the ability db_symbol
.name(id = Class) ⇒ String
Note:
The description is fetched from the 5th text file.
Returns the name of an ability
.psdk_id_to_gf_id ⇒ Array<Integer>
Return the psdk_id_to_gf_id array