Class: Battle::Effects::Item::OranBerry
- Defined in:
- docs/5_Battle_06_Effects_05_Item_Effects.rb
Overview
Class describing the Oran berry's item effect
Direct Known Subclasses
Constant Summary
Constants inherited from Berry
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).
-
#hp_healed ⇒ Integer
Give the amount of HP healed.
-
#hp_rate_trigger ⇒ Float
Give the hp rate that triggers the berry.
-
#on_end_turn_event(logic, scene, battlers)
Function called at the end of a turn.
-
#on_post_damage(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive).
-
#process_effect(target, launcher, skill, force_execution = false)
Function that process the effect of the berry (if possible).
-
#should_confuse ⇒ Boolean
Tell if the berry effect should confuse.
Instance Method Details
#execute_berry_effect(force_heal: false, force_execution: false)
Function that executes the effect of the berry (for Pluck & Bug Bite)
192 193 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 192 def execute_berry_effect(force_heal: false, force_execution: false) end |
#hp_healed ⇒ Integer
Give the amount of HP healed
207 208 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 207 def hp_healed end |
#hp_rate_trigger ⇒ Float
Give the hp rate that triggers the berry
203 204 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 203 def hp_rate_trigger end |
#on_end_turn_event(logic, scene, battlers)
Function called at the end of a turn
187 188 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 187 def on_end_turn_event(logic, scene, battlers) end |
#on_post_damage(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive)
181 182 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 181 def on_post_damage(handler, hp, target, launcher, skill) end |
#process_effect(target, launcher, skill, force_execution = false)
Function that process the effect of the berry (if possible)
199 200 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 199 def process_effect(target, launcher, skill, force_execution = false) end |
#should_confuse ⇒ Boolean
Tell if the berry effect should confuse
211 212 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 211 def should_confuse end |