From aa027a7c805f6efbfe68ccb6a635d9bb6e4cfa11 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 20 Aug 2018 10:24:20 -0300 Subject: Remove dead code --- index.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'index.js') 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} ]} ] }) -- cgit 1.3.0-6-gf8a5