« get me outta code hell

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:
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index e9cbfc7..24cccbe 100644
--- a/index.js
+++ b/index.js
@@ -102,7 +102,7 @@ class ATBBar {
   update(dt) {
     // ATB gauge progressing
     if (!this.battleCharacter.isExecutingChain) {
-      this.progress = Math.min(1, this.progress + dt / this.segmentCount)
+      this.progress = Math.min(1, this.progress + dt * 1.5 / this.segmentCount)
     }
 
     // ATB gauge visual update
@@ -293,7 +293,7 @@ class BattleCharacter extends Sprite {
 
     this.isExecutingChain = true
     this.isExecutingAction = true
-    this.actionExecuteTime = 1
+    this.actionExecuteTime = 0.4 + 0.2 * action.size
   }
 
   update(dt) {