From 213dcbcc1f9ddd05ebd8bb0e69daddf69f519b4f Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Tue, 16 Jul 2019 07:10:21 -0400 Subject: [PATCH] Add "hyperfast" speed option to replays This option is honestly a bit too fast to follow, but I guess it's useful for people to preview how fast Blitz is. --- replays/battle.php | 2 +- replays/js/replay.js | 3 +++ src/battle-animations.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/replays/battle.php b/replays/battle.php index a8e933027..578ccba12 100644 --- a/replays/battle.php +++ b/replays/battle.php @@ -81,7 +81,7 @@ $panels->start();
Speed: -
+
Color scheme: diff --git a/replays/js/replay.js b/replays/js/replay.js index 52c2af765..18788c912 100644 --- a/replays/js/replay.js +++ b/replays/js/replay.js @@ -115,12 +115,14 @@ var ReplayPanel = Panels.StaticPanel.extend({ case 'speed': var fadeTable = { + hyperfast: 40, fast: 50, normal: 300, slow: 500, reallyslow: 1000 }; var delayTable = { + hyperfast: 1, fast: 1, normal: 1, slow: 1000, @@ -128,6 +130,7 @@ var ReplayPanel = Panels.StaticPanel.extend({ }; this.battle.messageShownTime = delayTable[value]; this.battle.messageFadeTime = fadeTable[value]; + this.battle.scene.updateAcceleration(); break; } }, diff --git a/src/battle-animations.ts b/src/battle-animations.ts index ccab706d6..fa876825e 100644 --- a/src/battle-animations.ts +++ b/src/battle-animations.ts @@ -517,7 +517,7 @@ class BattleScene { runMoveAnim(moveid: ID, participants: Pokemon[]) { if (!this.animating) return; - let animEntry = BattleOtherAnims[moveid]; + let animEntry = BattleMoveAnims[moveid]; if (this.acceleration >= 3) { const targetsSelf = !participants[1] || participants[0] === participants[1]; const isSpecial = !targetsSelf && this.battle.dex.getMove(moveid).category === 'Special';