Module: Battle::Move::Mechanics::PowerBasedOnItem
- Includes:
- ItemBased
- Included in:
- Fling, NaturalGift
- Defined in:
- docs/01600_Alpha_25_Battle_Engine_04150_Battle_Move_00001_Mechanics.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
-
#real_base_power(user, target) ⇒ Integer
(also: #power_based_on_item_real_base_power)
Get the real base power of the move (taking in account all parameter).
Methods included from ItemBased
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)
103 104 |
# File 'docs/01600_Alpha_25_Battle_Engine_04150_Battle_Move_00001_Mechanics.rb', line 103 def real_base_power(user, target) end |