Class: Battle::Move::Absorb

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

Overview

Class describing a move that drains HP

Constant Summary collapse

DRAIN_FACTORS =

don't forget to add a "x.0" if the factor is a float, or it will be converted to 1 (= 100% damage-to-heal conversion)

{draining_kiss: 4 / 3.0, oblivion_wing: 4 / 3.0}

Instance Method Summary collapse

Instance Method Details

#drain? ⇒ Boolean

Tell that the move is a drain move

Returns:

  • (Boolean)


1629
1630
# File 'docs/5_Battle_10_Move.rb', line 1629

def drain?
end

#drain_factor ⇒ Integer

Returns the drain factor

Returns:

  • (Integer)


1625
1626
# File 'docs/5_Battle_10_Move.rb', line 1625

def drain_factor
end