Module: Battle::Move::Mechanics::TypesBasedOnItem
- Includes:
- ItemBased
- Included in:
- IvyCudgel, Judgment, Battle::Move::MultiAttack, NaturalGift
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Preset used for attacks with power based on held item. Should be included only in a Battle::Move class or a class with the same interface The includer must overwrite the following methods:
- private consume_item?
- private valid_item_hold?
- private get_types_by_item
Instance Method Summary collapse
-
#definitive_types(user, target) ⇒ Array<Integer>
(also: #types_based_on_item_definitive_types)
Get the types of the move with 1st type being affected by effects.
Methods included from ItemBased
Instance Method Details
#definitive_types(user, target) ⇒ Array<Integer> Also known as: types_based_on_item_definitive_types
Get the types of the move with 1st type being affected by effects
1056 1057 |
# File 'docs/5_Battle_10_Move.rb', line 1056 def definitive_types(user, target) end |