Class: Battle::Effects::Item::TypeResistingBerry
- Defined in:
- docs/5_Battle_06_Effects_05_Item_Effects.rb
Overview
Class describing Type Resisting Berry item effects
Constant Summary collapse
- CONDITIONS =
List of conditions to yield the attack multiplier
{}
Constants inherited from Berry
Class Method Summary collapse
-
.register(db_symbol, klass = TypeResistingBerry, &block) {|user, target, move| ... }
Register an item with defense multiplier only.
Instance Method Summary collapse
-
#execute_berry_effect(force_heal: false, force_execution: false)
Function that executes the effect of the berry (for Pluck & Bug Bite).
-
#mod3_multiplier(user, target, move) ⇒ Float, Integer
Give the move mod3 mutiplier (after everything).
Class Method Details
.register(db_symbol, klass = TypeResistingBerry, &block) {|user, target, move| ... }
Register an item with defense multiplier only
596 597 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 596 def register(db_symbol, klass = TypeResistingBerry, &block) end |
Instance Method Details
#execute_berry_effect(force_heal: false, force_execution: false)
Function that executes the effect of the berry (for Pluck & Bug Bite)
577 578 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 577 def execute_berry_effect(force_heal: false, force_execution: false) end |
#mod3_multiplier(user, target, move) ⇒ Float, Integer
Give the move mod3 mutiplier (after everything)
572 573 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 572 def mod3_multiplier(user, target, move) end |