Class: Battle::Move::ChangeType

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

Overview

Move that give a third type to an enemy

Direct Known Subclasses

MagicPowder

Constant Summary collapse

TYPES =

Type given by the move

Returns:

  • (Hash{Symbol => Symbol})
{soak: :water, magic_powder: :psychic}
ABILITY_EXCEPTION =

Abilities that prevent the type change

Returns:

  • (Array<Symbol>)
%i[multitype rks_system]

Instance Method Summary collapse

Instance Method Details

#condition(target) ⇒ Boolean

Method that tells if the Move's effect can proceed

Parameters:

Returns:

  • (Boolean)


2353
2354
# File 'docs/5_Battle_10_Move.rb', line 2353

def condition(target)
end

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



2348
2349
# File 'docs/5_Battle_10_Move.rb', line 2348

def deal_effect(user, actual_targets)
end

#message(target) ⇒ String

Get the message text

Returns:



2366
2367
# File 'docs/5_Battle_10_Move.rb', line 2366

def message(target)
end

#move_usable_by_user(user, targets) ⇒ Boolean

Function that tests if the user is able to use the move

Parameters:

Returns:

  • (Boolean) —

    if the procedure can continue



2343
2344
# File 'docs/5_Battle_10_Move.rb', line 2343

def move_usable_by_user(user, targets)
end

#new_type ⇒ Integer

Get the type given by the move

Returns:

  • (Integer) —

    the ID of the Type given by the move



2362
2363
# File 'docs/5_Battle_10_Move.rb', line 2362

def new_type
end

#type_check(target) ⇒ Boolean

Method that tells if the target already has the type

Parameters:

Returns:

  • (Boolean)


2358
2359
# File 'docs/5_Battle_10_Move.rb', line 2358

def type_check(target)
end