Resolved all remaining TODO comments for AI (except testing), fixed effects of moves that can end the battle

This commit is contained in:
Maruno17
2023-05-13 22:49:09 +01:00
parent 7a8754c425
commit a4d74a9663
16 changed files with 866 additions and 440 deletions

View File

@@ -5,13 +5,10 @@ class Battle::AI
attr_reader :battle
attr_reader :trainer
attr_reader :battlers
attr_reader :roles
attr_reader :user, :target, :move
def initialize(battle)
@battle = battle
@roles = [Array.new(@battle.pbParty(0).length) { |i| determine_roles(0, i) },
Array.new(@battle.pbParty(1).length) { |i| determine_roles(1, i) }]
end
def create_ai_objects