Class: Battle::Effects::Ability::SheerForce

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

Overview

Class describing the Sheer Force ability

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, db_symbol) ⇒ SheerForce

Create a new Sheer Force effect

Parameters:



3171
3172
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3171

def initialize(logic, target, db_symbol)
end

Instance Attribute Details

#activated=(value) ⇒ Boolean (writeonly)

If the ability is activated or not

Returns:

  • (Boolean)


3166
3167
3168
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3166

def activated=(value)
  @activated = value
end

Instance Method Details

#activated? ⇒ Boolean Also known as: activated

If Sheer Force is currently activated

Returns:

  • (Boolean)


3175
3176
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3175

def activated?
end

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

Give the move base power mutiplier

Parameters:

Returns:

  • (Float, Integer) —

    multiplier



3210
3211
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3210

def base_power_multiplier(user, target, move)
end

#name ⇒ Symbol

Get the name of the effect

Returns:

  • (Symbol)


3214
3215
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3214

def name
end

#on_stat_decrease_prevention(handler, stat, target, launcher, skill) ⇒ :prevent?

Function called when a stat_decrease_prevention is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the stat decrease cannot apply



3203
3204
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3203

def on_stat_decrease_prevention(handler, stat, target, launcher, skill)
end

#on_stat_increase_prevention(handler, stat, target, launcher, skill) ⇒ :prevent?

Function called when a stat_increase_prevention is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the stat increase cannot apply



3194
3195
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3194

def on_stat_increase_prevention(handler, stat, target, launcher, skill)
end

#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?

Function called when a status_prevention is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



3185
3186
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3185

def on_status_prevention(handler, status, target, launcher, skill)
end