Class: Battle::Move::Pledge
- Inherits:
-
Basic
- Object
- Battle::Move
- Basic
- 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]}
Constants inherited from Battle::Move
OneTarget, REGISTERED_MOVES, R_RANGE, TargetNoAsk
Instance Attribute Summary
Attributes inherited from Battle::Move
#consecutive_use_count, #damage_dealt, #effectiveness, #forced_next_move_decrease_pp, #id, #logic, #original, #original_target, #pp, #ppmax, #scene, #thrown_item_effect, #used, #user
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 Basic
#deal_damage, #effect_working?
Methods inherited from Battle::Move
[], #accuracy, #accuracy_mod, #accuracy_text, #atk_class, #authentic?, #ballistics?, #battle_stage_mod, #battler_targets, #be_method, #bite?, #blocable?, #blocked_by?, #bypass_chance_of_hit?, #calc_stab, #chance_of_hit, #check_specific_procedure, #clone, #critical_hit?, #critical_rate, #damages, #dance?, #data, #db_symbol, #deal_effect_sheer_force, #definitive_types, #description, #direct?, #disable_reason, #disabled?, #drain_factor, #effect_chance, #efficent_message, #evasion_mod, #force_switch?, #gravity_affected?, #heal?, #initialize, #magic_coat_affected?, #mental?, #mirror_move_affected?, #move_blocked_by_target?, #multi_hit?, #multi_turn?, #name, #no_choice_skill?, #not_very_effective?, #ohko?, #one_target?, #one_target_from_zone_attack, #physical?, #powder?, #power, #power_text, #pp_text, #pre_attack?, #priority, #proceed, #proceed_internal_dancer, #proceed_internal_parental_bond, #proceed_internal_sheer_force, #proceed_pre_attack, #pulse?, #punching?, #recharge?, #recoil?, #recoil_factor, register, register_move_disabled_check_hook, register_move_prevention_target_hook, register_move_prevention_user_hook, register_move_type_change_hook, register_single_type_multiplier_overwrite_hook, #relative_priority, #self_user_switch?, #show_usage_failure, #slicing_attack?, #snatchable?, #sound_attack?, #special?, #status?, #status_effects, #super_effective?, #target, #to_s, #trigger_king_rock?, #two_turn?, #type, #type?, #type_dark?, #type_dragon?, #type_electric?, #type_fairy?, #type_fighting?, #type_fire?, #type_flying?, #type_ghost?, #type_grass?, #type_ground?, #type_ice?, #type_insect?, #type_modifier, #type_normal?, #type_poison?, #type_psychic?, #type_rock?, #type_steel?, #type_water?, #typeless?, #unfreeze?, #wind_attack?
Methods included from Hooks
#exec_hooks, #force_return, included, register, remove, remove_without_name
Constructor Details
This class inherits a constructor from Battle::Move
Instance Method Details
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon
1406 1407 |
# File 'docs/5_Battle_10_Move.rb', line 1406 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
1392 1393 |
# File 'docs/5_Battle_10_Move.rb', line 1392 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
1401 1402 |
# File 'docs/5_Battle_10_Move.rb', line 1401 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)
1398 1399 |
# File 'docs/5_Battle_10_Move.rb', line 1398 def real_base_power(user, target) end |
#register_pledge_combination(effect_symbol, first_pledge_symbol, second_pledge_symbol)
Register a pledge combination
1416 1417 |
# File 'docs/5_Battle_10_Move.rb', line 1416 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
1410 1411 |
# File 'docs/5_Battle_10_Move.rb', line 1410 def register_pledge_move(db_symbol) end |