Class: Battle::Effects::Weather::Hardrain

Inherits:
Weather
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_06_Weather_Effects.rb

Overview

Class describing the Hardrain weather effect

Instance Method Summary collapse

Instance Method Details

#mod1_multiplier(user, target, move) ⇒ Float, Integer

Give the move mod1 mutiplier (before the +2 in the formula)

Parameters:

Returns:

  • (Float, Integer) —

    multiplier



143
144
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 143

def mod1_multiplier(user, target, move)
end

#on_end_turn_event(logic, scene, battlers)

Function called at the end of a turn

Parameters:



122
123
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 122

def on_end_turn_event(logic, scene, battlers)
end

#on_move_prevention_target(user, target, move) ⇒ Boolean

Function called when we try to check if the target evades the move

Parameters:

Returns:

  • (Boolean) —

    if the target is evading the move



129
130
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 129

def on_move_prevention_target(user, target, move)
end

#on_weather_prevention(handler, weather_type, last_weather) ⇒ :prevent?

Function called when a weather_prevention is checked

Parameters:

  • handler (Battle::Logic::WeatherChangeHandler)
  • weather_type (Symbol) —

    :none, :rain, :sunny, :sandstorm, :hail, :fog, :hardsun, :hardrain

  • last_weather (Symbol) —

    :none, :rain, :sunny, :sandstorm, :hail, :fog, :hardsun, :hardrain

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



136
137
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 136

def on_weather_prevention(handler, weather_type, last_weather)
end