Class: Battle::Effects::Item::LifeOrb
- Defined in:
- docs/5_Battle_06_Effects_05_Item_Effects.rb
Overview
Class describing the Life Orb item effect
Instance Method Summary collapse
-
#initialize(logic, target, db_symbol) ⇒ LifeOrb
constructor
Create a new Life Orb effect.
-
#mod2_multiplier(user, target, move) ⇒ Float, Integer
Give the move mod2 multiplier (after the critical).
-
#on_end_turn_event(logic, scene, battlers)
Function called at the end of a turn.
-
#on_post_action_event(logic, scene, battlers)
Function called at the end of an action.
-
#on_post_damage(handler, hp, target, launcher, skill)
(also: #on_post_damage_death)
Function called after damages were applied (post_damage, when target is still alive).
Constructor Details
#initialize(logic, target, db_symbol) ⇒ LifeOrb
Create a new Life Orb effect
1081 1082 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1081 def initialize(logic, target, db_symbol) end |
Instance Method Details
#mod2_multiplier(user, target, move) ⇒ Float, Integer
Give the move mod2 multiplier (after the critical)
1088 1089 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1088 def mod2_multiplier(user, target, move) end |
#on_end_turn_event(logic, scene, battlers)
Function called at the end of a turn
1109 1110 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1109 def on_end_turn_event(logic, scene, battlers) end |
#on_post_action_event(logic, scene, battlers)
Function called at the end of an action
1103 1104 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1103 def on_post_action_event(logic, scene, battlers) end |
#on_post_damage(handler, hp, target, launcher, skill) Also known as: on_post_damage_death
Function called after damages were applied (post_damage, when target is still alive)
1096 1097 |
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1096 def on_post_damage(handler, hp, target, launcher, skill) end |