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

Methods included from ItemBased

#move_usable_by_user

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

Parameters:

Returns:

  • (Array<Integer>)

    list of types of the move



1028
1029
# File 'docs/5_Battle_10_Move.rb', line 1028

def definitive_types(user, target)
end