Class: Battle::Effects::Item::LifeOrb

Inherits:
Item
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_05_Item_Effects.rb

Overview

Class describing the Life Orb item effect

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, db_symbol) ⇒ LifeOrb

Create a new Life Orb effect

Parameters:



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)

Parameters:

Returns:

  • (Float, Integer) —

    multiplier



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

Parameters:



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

Parameters:



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)

Parameters:



1096
1097
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1096

def on_post_damage(handler, hp, target, launcher, skill)
end