Class: Battle::Effects::Ability::Protosynthesis

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

Overview

Class describing the Protosynthesis ability effect

Constant Summary collapse

TEXTS_IDS =

Text IDs for each stat boost message

Returns:

  • (Hash{ Symbol => Integer }) —

    A hash mapping stats to their corresponding text IDs.

{atk: 1702, dfe: 1706, ats: 1710, dfs: 1714, spd: 1718}

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, db_symbol) ⇒ Protosynthesis

Create a new Protosynthesis effect

Parameters:



2771
2772
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2771

def initialize(logic, target, db_symbol)
end

Instance Method Details

#atk_modifier ⇒ Float, Integer

Give the atk modifier over given to the Pokemon with this effect

Returns:

  • (Float, Integer) —

    multiplier



2791
2792
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2791

def atk_modifier
end

#ats_modifier ⇒ Float, Integer

Give the ats modifier over given to the Pokemon with this effect

Returns:

  • (Float, Integer) —

    multiplier



2803
2804
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2803

def ats_modifier
end

#dfe_modifier ⇒ Float, Integer

Give the dfe modifier over given to the Pokemon with this effect

Returns:

  • (Float, Integer) —

    multiplier



2795
2796
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2795

def dfe_modifier
end

#dfs_modifier ⇒ Float, Integer

Give the dfs modifier over given to the Pokemon with this effect

Returns:

  • (Float, Integer) —

    multiplier



2807
2808
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2807

def dfs_modifier
end

#on_post_weather_change(handler, _weather_type, _last_weather)

Function called after the weather was changed (on_post_weather_change)

Parameters:

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

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

  • _last_weather (Symbol) —

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



2783
2784
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2783

def on_post_weather_change(handler, _weather_type, _last_weather)
end

#on_switch_event(handler, who, with)

Function called when a Pokemon has actually switched with another one

Parameters:



2777
2778
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2777

def on_switch_event(handler, who, with)
end

#on_weather_effects_disabled_change(handler)

Function called when weather effects are suppressed or restored (e.g. Air Lock / Cloud Nine)

Parameters:



2787
2788
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2787

def on_weather_effects_disabled_change(handler)
end

#spd_modifier ⇒ Float, Integer

Give the speed modifier over given to the Pokemon with this effect

Returns:

  • (Float, Integer) —

    multiplier



2799
2800
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2799

def spd_modifier
end