Class: Battle::Move::ShellSideArm
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Class describing the Shell Side Arm move
Instance Method Summary collapse
-
#damages(user, target) ⇒ Integer
Method calculating the damages done by the actual move.
-
#direct? ⇒ Boolean
Is the skill direct ?.
-
#physical? ⇒ Boolean
Is the skill physical ?.
-
#special? ⇒ Boolean
Is the skill special ?.
Methods inherited from Basic
#deal_damage, #effect_working?
Instance Method Details
#damages(user, target) ⇒ Integer
Note:
: I used the 4th Gen formula : https://www.smogon.com/dp/articles/damage_formula
Note:
The formula is the following: (((((((Level * 2 / 5) + 2) * BasePower * [Sp]Atk / 50) / [Sp]Def) * Mod1) + 2) * CH * Mod2 * R / 100) * STAB * Type1 * Type2 * Mod3)
Method calculating the damages done by the actual move
6144 6145 |
# File 'docs/5_Battle_10_Move.rb', line 6144 def damages(user, target) end |
#direct? ⇒ Boolean
Is the skill direct ?
6156 6157 |
# File 'docs/5_Battle_10_Move.rb', line 6156 def direct? end |
#physical? ⇒ Boolean
Is the skill physical ?
6148 6149 |
# File 'docs/5_Battle_10_Move.rb', line 6148 def physical? end |
#special? ⇒ Boolean
Is the skill special ?
6152 6153 |
# File 'docs/5_Battle_10_Move.rb', line 6152 def special? end |