Class: Oakdex::Pokemon::GrowthEvents::Revive

Inherits:
AddHp
  • Object
show all
Defined in:
lib/oakdex/pokemon/growth_events/revive.rb

Overview

When pokemon receives HP and revives

Instance Method Summary collapse

Methods inherited from AddHp

#execute

Methods inherited from Base

#execute, #initialize, #possible_actions, #read_only?, #to_h

Constructor Details

This class inherits a constructor from Oakdex::Pokemon::GrowthEvents::Base

Instance Method Details

#messageObject



7
8
9
# File 'lib/oakdex/pokemon/growth_events/revive.rb', line 7

def message
  "#{@pokemon.name} revives and heals by #{real_hp}HP."
end