Class: Battle::Logic::MegaEvolve

Inherits:
Object
  • Object
show all
Defined in:
docs/01600_Alpha_25_Battle_Engine_00200_Battle_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:



433
434
# File 'docs/01600_Alpha_25_Battle_Engine_00200_Battle_Logic.rb', line 433

def initialize(scene)
end

Instance Method Details

#can_pokemon_mega_evolve?(pokemon) ⇒ Boolean

Test if a Pokemon can Mega Evolve

Parameters:

Returns:

  • (Boolean)


438
439
# File 'docs/01600_Alpha_25_Battle_Engine_00200_Battle_Logic.rb', line 438

def can_pokemon_mega_evolve?(pokemon)
end

#mark_as_mega_evolved(pokemon)

Mark a Pokemon as mega evolved

Parameters:



442
443
# File 'docs/01600_Alpha_25_Battle_Engine_00200_Battle_Logic.rb', line 442

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:



447
448
# File 'docs/01600_Alpha_25_Battle_Engine_00200_Battle_Logic.rb', line 447

def mega_tool_name(pokemon)
end