Class: Battle::Logic::MegaEvolve
Overview
Logic for mega evolution
Constant Summary collapse
- MEGA_EVOLVE_TOOLS =
List of tools that allow MEGA Evolution
%i[mega_ring mega_bracelet mega_pendant mega_glasses mega_anchor mega_stickpin mega_tiara mega_anklet mega_cuff mega_charm mega_glove]
Instance Method Summary collapse
-
#can_pokemon_mega_evolve?(pokemon) ⇒ Boolean
Test if a Pokemon can Mega Evolve.
-
#initialize(scene) ⇒ MegaEvolve
constructor
Create the MegaEvolve checker.
-
#mark_as_mega_evolved(pokemon)
Mark a Pokemon as mega evolved.
-
#mega_tool_name(pokemon) ⇒ String
Give the name of the mega tool used by the trainer.
Constructor Details
#initialize(scene) ⇒ MegaEvolve
Create the MegaEvolve checker
440 441 |
# File 'docs/5_Battle_04_Logic.rb', line 440 def initialize(scene) end |
Instance Method Details
#can_pokemon_mega_evolve?(pokemon) ⇒ Boolean
Test if a Pokemon can Mega Evolve
445 446 |
# File 'docs/5_Battle_04_Logic.rb', line 445 def can_pokemon_mega_evolve?(pokemon) end |
#mark_as_mega_evolved(pokemon)
Mark a Pokemon as mega evolved
449 450 |
# File 'docs/5_Battle_04_Logic.rb', line 449 def mark_as_mega_evolved(pokemon) end |
#mega_tool_name(pokemon) ⇒ String
Give the name of the mega tool used by the trainer
454 455 |
# File 'docs/5_Battle_04_Logic.rb', line 454 def mega_tool_name(pokemon) end |