Module: Battle::Move::Mechanics::PowerBasedOnItem

Includes:
ItemBased
Included in:
Fling, 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_power_by_item

Instance Method Summary collapse

Methods included from ItemBased

#move_usable_by_user

Instance Method Details

#real_base_power(user, target) ⇒ Integer Also known as: power_based_on_item_real_base_power

Get the real base power of the move (taking in account all parameter)

Parameters:

Returns:

  • (Integer)


1006
1007
# File 'docs/5_Battle_10_Move.rb', line 1006

def real_base_power(user, target)
end