Class: Oakdex::Pokemon::GrowthEvents::IncreaseMovePp
- Defined in:
- lib/oakdex/pokemon/growth_events/increase_move_pp.rb
Overview
When picked move for increasing pp
Instance Method Summary collapse
Methods inherited from Base
#initialize, #possible_actions, #read_only?, #to_h
Constructor Details
This class inherits a constructor from Oakdex::Pokemon::GrowthEvents::Base
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 |
# File 'lib/oakdex/pokemon/growth_events/increase_move_pp.rb', line 11 def execute move = @pokemon.moves.find { |m| m.name == @options[:move_id] } move.add_pp(@options[:change_by]) remove_event end |
#message ⇒ Object
7 8 9 |
# File 'lib/oakdex/pokemon/growth_events/increase_move_pp.rb', line 7 def "#{@pokemon.name} increased PP for #{@options[:move_id]}." end |