Class: Battle::Effects::Item::StatusBerry

Inherits:
Berry show all
Defined in:
docs/5_Battle_06_Effects_05_Item_Effects.rb

Overview

Class describing Status Berry item effects

Defined Under Namespace

Classes: Cheri, Chesto, Pecha, Rawst

Constant Summary

Constants inherited from Berry

Berry::FLAVORS

Instance Method Summary collapse

Instance Method Details

#execute_berry_effect(force_heal: false, force_execution: false)

Function that executes the effect of the berry (for Pluck & Bug Bite)

Parameters:

  • force_heal (Boolean) (defaults to: false) —

    tell if a healing berry should force the heal

  • force_execution (Boolean) (defaults to: false) —

    tell if the execution of the berry has to be forced



480
481
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 480

def execute_berry_effect(force_heal: false, force_execution: false)
end

#on_post_status_change(handler, status, target, launcher, skill)

Function called when a post_status_change is performed

Parameters:



475
476
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 475

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