Class: Battle::Move::Pledge
- Inherits:
-
BasicWithSuccessfulEffect
- Object
- Move
- Basic
- BasicWithSuccessfulEffect
- Battle::Move::Pledge
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Class describing a Pledge move (moves combining for different effects)
Constant Summary collapse
- PLEDGE_MOVES =
List the db_symbol for every Pledge moves
%i[water_pledge fire_pledge grass_pledge]
- COMBINATION_LIST =
Return the combination for each effect triggered by Pledge combination
{rainbow: %i[water_pledge fire_pledge], sea_of_fire: %i[fire_pledge grass_pledge], swamp: %i[grass_pledge water_pledge]}
Instance Method Summary collapse
-
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon.
-
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move.
-
#post_accuracy_check_move(user, actual_targets)
Function which permit things to happen before the move's animation.
-
#real_base_power(user, target) ⇒ Integer
Get the real base power of the move (taking in account all parameter).
-
#register_pledge_combination(effect_symbol, first_pledge_symbol, second_pledge_symbol)
Register a pledge combination.
-
#register_pledge_move(db_symbol)
Register a Pledge move as one in the System.
Methods inherited from BasicWithSuccessfulEffect
Methods inherited from Basic
#deal_damage, #effect_working?
Instance Method Details
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon
1439 1440 |
# File 'docs/5_Battle_10_Move.rb', line 1439 def deal_effect(user, actual_targets) end |
#move_usable_by_user(user, targets) ⇒ Boolean
Thing that prevents the move from being used should be defined by :move_prevention_user Hook
Function that tests if the user is able to use the move
1425 1426 |
# File 'docs/5_Battle_10_Move.rb', line 1425 def move_usable_by_user(user, targets) end |
#post_accuracy_check_move(user, actual_targets)
Function which permit things to happen before the move's animation
1434 1435 |
# File 'docs/5_Battle_10_Move.rb', line 1434 def post_accuracy_check_move(user, actual_targets) end |
#real_base_power(user, target) ⇒ Integer
Get the real base power of the move (taking in account all parameter)
1431 1432 |
# File 'docs/5_Battle_10_Move.rb', line 1431 def real_base_power(user, target) end |
#register_pledge_combination(effect_symbol, first_pledge_symbol, second_pledge_symbol)
Register a pledge combination
1449 1450 |
# File 'docs/5_Battle_10_Move.rb', line 1449 def register_pledge_combination(effect_symbol, first_pledge_symbol, second_pledge_symbol) end |
#register_pledge_move(db_symbol)
Register a Pledge move as one in the System
1443 1444 |
# File 'docs/5_Battle_10_Move.rb', line 1443 def register_pledge_move(db_symbol) end |