Class: Battle::Effects::Ability::DrySkin

Inherits:
Ability
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_04_Ability_Effects.rb

Overview

Class describing the Dry Skin ability effect

Instance Method Summary collapse

Instance Method Details

#base_power_multiplier(user, target, move) ⇒ Float

Get the base power multiplier of this move

Parameters:

Returns:

  • (Float)


1047
1048
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1047

def base_power_multiplier(user, target, move)
end

#on_damage_prevention(handler, hp, target, launcher, skill) ⇒ :prevent, ...

Function called when a damage_prevention is checked

Parameters:

Returns:

  • (:prevent, Integer, nil) —

    :prevent if the damage cannot be applied, Integer if the hp variable should be updated



1056
1057
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1056

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

#on_end_turn_event(logic, scene, battlers)

Function called at the end of a turn

Parameters:



1062
1063
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1062

def on_end_turn_event(logic, scene, battlers)
end