Class: Battle::Effects::Ability::Protosynthesis
- 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
{atk: 1702, dfe: 1706, ats: 1710, dfs: 1714, spd: 1718}
Instance Method Summary collapse
-
#atk_modifier ⇒ Float, Integer
Give the atk modifier over given to the Pokemon with this effect.
-
#ats_modifier ⇒ Float, Integer
Give the ats modifier over given to the Pokemon with this effect.
-
#dfe_modifier ⇒ Float, Integer
Give the dfe modifier over given to the Pokemon with this effect.
-
#dfs_modifier ⇒ Float, Integer
Give the dfs modifier over given to the Pokemon with this effect.
-
#initialize(logic, target, db_symbol) ⇒ Protosynthesis
constructor
Create a new Protosynthesis effect.
-
#on_post_weather_change(handler, _weather_type, _last_weather)
Function called after the weather was changed (on_post_weather_change).
-
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one.
-
#on_weather_effects_disabled_change(handler)
Function called when weather effects are suppressed or restored (e.g. Air Lock / Cloud Nine).
-
#spd_modifier ⇒ Float, Integer
Give the speed modifier over given to the Pokemon with this effect.
Constructor Details
#initialize(logic, target, db_symbol) ⇒ Protosynthesis
Create a new Protosynthesis effect
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
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
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
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
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)
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
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)
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
2799 2800 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2799 def spd_modifier end |