Split AI move handlers into general ones and ones per target, rearranged some main move-scoring code

This commit is contained in:
Maruno17
2022-10-30 15:25:46 +00:00
parent e12fd08eb1
commit 3408b038cf
16 changed files with 1133 additions and 1040 deletions

View File

@@ -61,7 +61,7 @@ class Battle::AI
scoreSum = 0
scoreCount = 0
battler.allOpposing.each do |b|
scoreSum += pbGetMoveScore(battler.moves[idxEncoredMove], b)
scoreSum += pbGetMoveScore(battler.moves[idxEncoredMove], [b])
scoreCount += 1
end
if scoreCount > 0 && scoreSum / scoreCount <= 20