Class: Battle::Effects::Status::Toxic

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

Overview

Class describing the Toxic status effect

Defined Under Namespace

Modules: OnResetStates

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, status_id) ⇒ Toxic

Create a new toxic effect

Parameters:



235
236
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 235

def initialize(logic, target, status_id)
end

Instance Method Details

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


257
258
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 257

def name
end

#on_end_turn_event(logic, scene, battlers)

Apply toxic effect on end of turn

Parameters:



253
254
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 253

def on_end_turn_event(logic, scene, battlers)
end

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

Prevent toxic from being applied twice

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



247
248
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 247

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

#reset

Reset the toxic counter



238
239
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 238

def reset
end