Rewrote AI calculations for move effects relating to healing the user, added calculation to add predicted damage to a move's score

This commit is contained in:
Maruno17
2022-08-30 22:13:23 +01:00
parent 931a47c5fe
commit 92c0fe5c90
3 changed files with 153 additions and 73 deletions

View File

@@ -57,6 +57,18 @@ class Battle::AI::AIBattler
#=============================================================================
def check_for_move
ret = false
@battler.eachMove do |move|
next unless yield move
ret = true
break
end
return ret
end
#=============================================================================
def speed; return @battler.speed; end
# TODO: Cache calculated rough stats? Forget them in def refresh_battler.