Class: Battle::Move::CustomStatsBased

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

Overview

Class describing the Custom Stats Based moves

Constant Summary collapse

ATS_PHYSICAL_MOVES =

Physical moves that use the special attack

%i[psyshock secret_sword]
ATK_SPECIAL_MOVES =

Special moves that use the attack

[]

Instance Method Summary collapse

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#calc_atk_stat_effect_modifier(user, target, ph_move) ⇒ Integer

Statistic effect modifier calculation: ATK/ATS

Parameters:

Returns:

  • (Integer)


2663
2664
# File 'docs/5_Battle_10_Move.rb', line 2663

def calc_atk_stat_effect_modifier(user, target, ph_move)
end

#calc_atk_stat_modifier(user, target, ph_move) ⇒ Integer

Statistic modifier calculation: ATK/ATS

Parameters:

Returns:

  • (Integer)


2656
2657
# File 'docs/5_Battle_10_Move.rb', line 2656

def calc_atk_stat_modifier(user, target, ph_move)
end

#calc_sp_atk_basis(user, target, ph_move) ⇒ Integer

Get the basis atk for the move

Parameters:

Returns:

  • (Integer)


2649
2650
# File 'docs/5_Battle_10_Move.rb', line 2649

def calc_sp_atk_basis(user, target, ph_move)
end

#physical? ⇒ Boolean

Is the skill physical ?

Returns:

  • (Boolean)


2638
2639
# File 'docs/5_Battle_10_Move.rb', line 2638

def physical?
end

#special? ⇒ Boolean

Is the skill special ?

Returns:

  • (Boolean)


2642
2643
# File 'docs/5_Battle_10_Move.rb', line 2642

def special?
end