Class: Battle::AI::MoveHeuristicBase::MultiHit
- Inherits:
-
MoveHeuristicBase
- Object
- MoveHeuristicBase
- Battle::AI::MoveHeuristicBase::MultiHit
- Defined in:
- docs/5_Battle_30_AI_1_MoveHeuristic.rb
Overview
Note:
This class is used for moves like Fury Swipes, Rock Blast, etc. these moves have very low power but can hit multiple times, effectively having always low heuristic despite potential strong power. Minimum AI level: 3 -> "can_see_move_kind" set to true.
Class describing the heuristic of a move that hits multiple times
Direct Known Subclasses
Constant Summary collapse
- POWER_MEAN =
Mean for power calculation
200.0- POWER_STD =
Standard deviation for power calculation
150 * Math.sqrt(2)
Instance Method Summary collapse
-
#compute(move, user, target, ai) ⇒ Float
Compute the heuristic.
-
#initialize ⇒ MultiHit
constructor
Create a new Multi Hit Move Heuristic.
-
#move_hit_multiplier(user) ⇒ Float
Process the power amplification according to potential hit amount.
Constructor Details
#initialize ⇒ MultiHit
Create a new Multi Hit Move Heuristic
65 66 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 65 def initialize end |
Instance Method Details
#compute(move, user, target, ai) ⇒ Float
Compute the heuristic
73 74 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 73 def compute(move, user, target, ai) end |
#move_hit_multiplier(user) ⇒ Float
Process the power amplification according to potential hit amount
78 79 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 78 def move_hit_multiplier(user) end |