Class: Battle::Effects::Status::Toxic
- 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
-
#initialize(logic, target, status_id) ⇒ Toxic
constructor
Create a new toxic effect.
-
#name ⇒ Symbol
Function giving the name of the effect.
-
#on_end_turn_event(logic, scene, battlers)
Apply toxic effect on end of turn.
-
#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?
Prevent toxic from being applied twice.
-
#reset
Reset the toxic counter.
Constructor Details
#initialize(logic, target, status_id) ⇒ Toxic
Create a new toxic effect
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
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
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
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 |