Class: Battle::Effects::Ability::SheerForce
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Sheer Force ability
Instance Attribute Summary collapse
-
#activated ⇒ Boolean
writeonly
If the ability is activated or not.
Instance Method Summary collapse
-
#activated? ⇒ Boolean
(also: #activated)
If Sheer Force is currently activated.
-
#base_power_multiplier(user, target, move) ⇒ Float, Integer
Give the move base power mutiplier.
-
#initialize(logic, target, db_symbol) ⇒ SheerForce
constructor
Create a new Sheer Force effect.
-
#name ⇒ Symbol
Get the name of the effect.
-
#on_stat_decrease_prevention(handler, stat, target, launcher, skill) ⇒ :prevent?
Function called when a stat_decrease_prevention is checked.
-
#on_stat_increase_prevention(handler, stat, target, launcher, skill) ⇒ :prevent?
Function called when a stat_increase_prevention is checked.
-
#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?
Function called when a status_prevention is checked.
Constructor Details
#initialize(logic, target, db_symbol) ⇒ SheerForce
Create a new Sheer Force effect
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
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
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
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
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
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
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
3185 3186 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3185 def on_status_prevention(handler, status, target, launcher, skill) end |