Class: Battle::Effects::Item::ConfusingBerries

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

Overview

Class describing the Confusing berries' item effect

Constant Summary

Constants inherited from Berry

Berry::FLAVORS

Instance Method Summary collapse

Methods inherited from OranBerry

#execute_berry_effect, #on_end_turn_event, #on_post_damage, #process_effect

Methods inherited from Berry

#execute_berry_effect

Instance Method Details

#hp_healed ⇒ Integer

Give the amount of HP healed

Returns:

  • (Integer)


236
237
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 236

def hp_healed
end

#hp_rate_trigger ⇒ Float

Give the hp rate that triggers the berry

Returns:

  • (Float)


232
233
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 232

def hp_rate_trigger
end

#should_confuse ⇒ Boolean

Tell if the berry effect should confuse

Returns:

  • (Boolean)


240
241
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 240

def should_confuse
end