Class: Battle::Effects::Ability::QuarkDrive

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

Overview

Class describing the Quark Drive 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) ⇒ QuarkDrive

Create a new FlowerGift effect

Parameters:



2883
2884
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2883

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



2899
2900
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2899

def atk_modifier
end

#ats_modifier ⇒ Float, Integer

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

Returns:

  • (Float, Integer) —

    multiplier



2911
2912
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2911

def ats_modifier
end

#dfe_modifier ⇒ Float, Integer

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

Returns:

  • (Float, Integer) —

    multiplier



2903
2904
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2903

def dfe_modifier
end

#dfs_modifier ⇒ Float, Integer

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

Returns:

  • (Float, Integer) —

    multiplier



2915
2916
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2915

def dfs_modifier
end

#on_post_fterrain_change(handler, fterrain_type, last_fterrain)

Function called after the terrain was changed

Parameters:

  • handler (Battle::Logic::FTerrainChangeHandler)
  • fterrain_type (Symbol) —

    :none, :electric_terrain, :grassy_terrain, :misty_terrain, :psychic_terrain

  • last_fterrain (Symbol) —

    :none, :electric_terrain, :grassy_terrain, :misty_terrain, :psychic_terrain



2895
2896
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2895

def on_post_fterrain_change(handler, fterrain_type, last_fterrain)
end

#on_switch_event(handler, who, with)

Function called when a Pokemon has actually switched with another one

Parameters:



2889
2890
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2889

def on_switch_event(handler, who, with)
end

#spd_modifier ⇒ Float, Integer

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

Returns:

  • (Float, Integer) —

    multiplier



2907
2908
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2907

def spd_modifier
end