Class: Battle::Move::IvyCudgel

Inherits:
Basic show all
Includes:
Mechanics::TypesBasedOnItem
Defined in:
docs/5_Battle_10_Move.rb

Overview

Class describing the Ivy Cudgel move

Constant Summary collapse

IVYCUDGEL_TABLE =

Table of move type depending on item

Returns:

  • (Hash{Symbol => Symbol})
{wellspring_mask: :water, hearthflame_mask: :fire, cornerstone_mask: :rock}

Instance Method Summary collapse

Methods included from Mechanics::TypesBasedOnItem

#definitive_types

Methods included from Mechanics::ItemBased

#move_usable_by_user

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#consume_item? ⇒ Boolean

Tell if the item is consumed during the attack

Returns:

  • (Boolean)


4194
4195
# File 'docs/5_Battle_10_Move.rb', line 4194

def consume_item?
end

#get_types_by_item(name) ⇒ Array<Integer>

Get the real types of the move depending on the item If the item is a special mask, change the type accordingly, else default to grass type

Parameters:

  • name (Symbol)

Returns:

  • (Array<Integer>)


4205
4206
# File 'docs/5_Battle_10_Move.rb', line 4205

def get_types_by_item(name)
end

#valid_held_item?(name) ⇒ Boolean

Test if the held item is valid

Parameters:

  • name (Symbol)

Returns:

  • (Boolean)


4199
4200
# File 'docs/5_Battle_10_Move.rb', line 4199

def valid_held_item?(name)
end