Class: Battle::Move::RecoilMove
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Move that has a little recoil when it hits the opponent
Direct Known Subclasses
Constant Summary collapse
- RECOIL_FACTORS =
List of factor depending on the move
{brave_bird: 3, double_edge: 3, chloroblast: 2, flare_blitz: 3, head_charge: 4, head_smash: 2, light_of_ruin: 2, shadow_end: 2, shadow_rush: 16, struggle: 4, submission: 4, take_down: 4, volt_tackle: 3, wave_crash: 3, wild_charge: 4, wood_hammer: 3}
Instance Method Summary collapse
-
#recoil(hp, user)
Function applying recoil damage to the user.
-
#recoil? ⇒ Boolean
Tell that the move is a recoil move.
-
#recoil_applies_on_user_hp? ⇒ Boolean
Test if teh recoil applis to user current hp.
-
#recoil_applies_on_user_max_hp? ⇒ Boolean
Test if the recoil applies to user max hp.
-
#recoil_factor ⇒ Integer
Returns the recoil factor.
Methods inherited from Basic
#deal_damage, #effect_working?
Instance Method Details
#recoil(hp, user)
Function applying recoil damage to the user
5635 5636 |
# File 'docs/5_Battle_10_Move.rb', line 5635 def recoil(hp, user) end |
#recoil? ⇒ Boolean
Tell that the move is a recoil move
5620 5621 |
# File 'docs/5_Battle_10_Move.rb', line 5620 def recoil? end |
#recoil_applies_on_user_hp? ⇒ Boolean
Test if teh recoil applis to user current hp
5630 5631 |
# File 'docs/5_Battle_10_Move.rb', line 5630 def recoil_applies_on_user_hp? end |
#recoil_applies_on_user_max_hp? ⇒ Boolean
Test if the recoil applies to user max hp
5627 5628 |
# File 'docs/5_Battle_10_Move.rb', line 5627 def recoil_applies_on_user_max_hp? end |
#recoil_factor ⇒ Integer
Returns the recoil factor
5624 5625 |
# File 'docs/5_Battle_10_Move.rb', line 5624 def recoil_factor end |