« get me outta code hell

Tweak action timings - csb-game - Pixelly spin-off of the Command Synergy Battle system used in Final Fantasy XIII
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-08-09 21:09:42 -0300
committerFlorrie <towerofnix@gmail.com>2018-08-09 21:09:42 -0300
commitfa469092ab153abcb3152b54368927e3f7a772e4 (patch)
treeeafb49113cb4cb60815f1eceb9ebb7c01cdb760d
parentec47074f8cc2503de3eada5247e483d0d02c561e (diff)
Tweak action timings
-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) {