Class: Battle::Effects::Weather::StrongWinds

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

Overview

Class describing the StrongWinds weather effect

Instance Method Summary collapse

Constructor Details

#initialize(logic, db_symbol) ⇒ StrongWinds

Create a new effect

Parameters:

  • logic (Battle::Logic) —

    logic used to get all the handler in order to allow the effect to work



245
246
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 245

def initialize(logic, db_symbol)
end

Instance Method Details

#on_end_turn_event(logic, scene, battlers)

Function called at the end of a turn

Parameters:



251
252
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 251

def on_end_turn_event(logic, scene, battlers)
end

#on_post_accuracy_check(logic, scene, targets, launcher, skill)

Function called before the accuracy check of a move is done

Parameters:



266
267
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 266

def on_post_accuracy_check(logic, scene, targets, launcher, skill)
end

#on_single_type_multiplier_overwrite(target, target_type, type, move) ⇒ Float?

Function that computes an overwrite of the type multiplier

Parameters:

Returns:

  • (Float, nil) —

    overwriten type multiplier



274
275
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 274

def on_single_type_multiplier_overwrite(target, target_type, type, 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



258
259
# File 'docs/5_Battle_06_Effects_06_Weather_Effects.rb', line 258

def on_weather_prevention(handler, weather_type, last_weather)
end