« get me outta code hell

Remove dead code - csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-20 10:24:20 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-20 10:24:20 -0300
commitaa027a7c805f6efbfe68ccb6a635d9bb6e4cfa11 (patch)
tree8bdd8466815c23c776994ce5c61b3202f0365738 /index.js
parent973b85ff1fb8e22204afcb9c5ac6e0d27f545abb (diff)
Remove dead code
Diffstat (limited to 'index.js')
-rw-r--r--index.js21
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}
     ]}
   ]
 })