Class: Battle::Effects::Status::Burn

Inherits:
Status
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_03_Status_Effects.rb

Overview

Class describing the Burn status effect

Instance Method Summary collapse

Instance Method Details

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

Give the move mod1 mutiplier (before the +2 in the formula)

Parameters:

Returns:

  • (Float, Integer) —

    multiplier



129
130
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 129

def mod1_multiplier(user, target, move)
end

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


148
149
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 148

def name
end

#on_end_turn_event(logic, scene, battlers)

Apply burn effect on end of turn

Parameters:



144
145
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 144

def on_end_turn_event(logic, scene, battlers)
end

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

Prevent burn from being applied twice

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



138
139
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 138

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