class Oakdex::Battle::StatusConditions::Base
Represents Abstract Class Base
Attributes
pokemon[R]
Public Class Methods
new(pokemon)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 8 def initialize(pokemon) @pokemon = pokemon end
Public Instance Methods
after_fainted(battle)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 16 def after_fainted(battle); end
after_received_damage(move_execution)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 20 def after_received_damage(move_execution); end
after_switched_out(battle)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 18 def after_switched_out(battle); end
after_turn(turn)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 14 def after_turn(turn); end
before_turn(turn)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 12 def before_turn(turn); end
damage_modifier(_move_execution)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 26 def damage_modifier(_move_execution) 1.0 end
prevents_move?(_move_execution)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 30 def prevents_move?(_move_execution) false end
stat_modifier(_stat)
click to toggle source
# File lib/oakdex/battle/status_conditions/base.rb, line 22 def stat_modifier(_stat) 1.0 end