Class: Battle::AI::MoveHeuristicBase::MultiHit

Inherits:
MoveHeuristicBase
  • Object
show all
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

PopulationBomb, ThreeHit, TripleKick, TwoHit

Constant Summary collapse

POWER_MEAN =

Mean for power calculation

Returns:

  • (Float)
200.0
POWER_STD =

Standard deviation for power calculation

Returns:

  • (Float)
150 * Math.sqrt(2)

Instance Method Summary collapse

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

Parameters:

Returns:

  • (Float)


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

Parameters:

Returns:

  • (Float)


78
79
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 78

def move_hit_multiplier(user)
end