Class: Battle::Move::SecretPower

Inherits:
BasicWithSuccessfulEffect show all
Includes:
Mechanics::LocationBased
Defined in:
docs/5_Battle_10_Move.rb

Overview

Secret Power deals damage and has a 30% chance of inducing a secondary effect on the opponent, depending on the environment.

Defined Under Namespace

Classes: SPC

Class Method Summary collapse

Methods included from Mechanics::LocationBased

#move_blocked_by_target?

Methods inherited from BasicWithSuccessfulEffect

#effect_working?

Methods inherited from Basic

#deal_damage, #effect_working?

Class Method Details

.register(loc, mock, type, *params)

Parameters:

  • loc (Symbol) —

    Name of the location type

  • mock (Symbol, Integer) —

    ID or db_symbol of the move used for the animation

  • type (Symbol) —

    name of the function to call

  • params (Array<Object>) —

    params to pass to the function



6086
6087
# File 'docs/5_Battle_10_Move.rb', line 6086

def register(loc, mock, type, *params)
end

.reset

Reset the secret power table



6080
6081
# File 'docs/5_Battle_10_Move.rb', line 6080

def reset
end