diff options
-rw-r--r-- | index.js | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/index.js b/index.js index 8162c01..692aacf 100644 --- a/index.js +++ b/index.js @@ -217,25 +217,6 @@ class ATBBar { } this.battleCharacter.determineChain() - - /* - // Determine a target - // TODO: AI logic for when to change target - // TODO: Maybe need to bump the Math.random() chances. - if (!this.battleCharacter.isExecutingChain && !this.battleCharacter.willExecuteChain && (this.battleCharacter.aiID === 'manasvinWarmech' || !this.battleCharacter.targetCharacter)) { - if (this.battleCharacter.aiID === 'manasvinWarmech' && Math.random() < (1 - this.battleCharacter.hp / this.battleCharacter.maxHP) / 2) { - this.battleCharacter.determineNewTarget('ally') - } else { - this.battleCharacter.determineNewTarget('enemy') - } - } - - // ATB gauge not full? Try to queue actions - if (!this.battleCharacter.isExecutingChain && this.battleCharacter.targetCharacter && this.getRemainingSpace() >= 0) { - // TODO: Actual AI logic here - this.battleCharacter.willExecuteChain = true - } - */ } getRemainingSpace() { @@ -1409,7 +1390,7 @@ const battle = new Battle({ {x: -75, y: 225, name: 'Fie', hp: 375, maxHP: 375, knownActions: ['fire', 'blizz', 'blizzara', 'blizzaga', 'aqua', 'aquara', 'curasa'], determineChain: basicAI} ]}, {characterData: [ - {x: 80, y: 200, aiID: 'manasvinWarmech', name: 'Manasvin Warmech', hp: 1200, maxHP: 1200, knownActions: ['aqua', 'aquaga', 'manasvinSwipe', 'manasvinRecover'], determineChain: basicAI} + {x: 80, y: 200, name: 'Manasvin Warmech', hp: 1200, maxHP: 1200, knownActions: ['aqua', 'aquaga', 'manasvinSwipe', 'manasvinRecover'], determineChain: basicAI} ]} ] }) |