class Oakdex::Pokemon::GrowthEvents::IncreasePp
When pokemon increases pp for a move
Public Instance Methods
execute(action)
click to toggle source
# File lib/oakdex/pokemon/growth_events/increase_pp.rb, line 15 def execute(action) @pokemon.add_growth_event(GrowthEvents::IncreaseMovePp, move_id: action, change_by: @options[:moves][action]) remove_event end
message()
click to toggle source
# File lib/oakdex/pokemon/growth_events/increase_pp.rb, line 7 def message "Please choose a move of #{@pokemon.name} that should increase its PP." end
possible_actions()
click to toggle source
# File lib/oakdex/pokemon/growth_events/increase_pp.rb, line 11 def possible_actions @options[:moves].keys end