Class: Battle::Logic::MegaEvolve

Inherits:
Object
  • Object
show all
Defined in:
docs/5_Battle_04_Logic.rb

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

Constructor Details

#initialize(scene) ⇒ MegaEvolve

Create the MegaEvolve checker

Parameters:



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

Parameters:

Returns:

  • (Boolean)


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

Parameters:



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

Parameters:

Returns:



454
455
# File 'docs/5_Battle_04_Logic.rb', line 454

def mega_tool_name(pokemon)
end