From 6f007c6e60ba6b12595c01599c7bab763755797b Mon Sep 17 00:00:00 2001 From: Jakub Hanko <60473007+JakubHanko@users.noreply.github.com> Date: Sat, 11 May 2024 16:13:59 +0200 Subject: [PATCH] Change unnecessary let into const --- src/data/move.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 446b639f5..5d6c84bc8 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1930,17 +1930,17 @@ export class BattleStatRatioPowerAttr extends VariablePowerAttr { const statRatio = target.getBattleStat(this.stat) / user.getBattleStat(this.stat); const statThresholds = [ 0.25, 1 / 3, 0.5, 1, -1 ]; - let statThresholdPowers = [ 150, 120, 80, 60, 40 ]; + const statThresholdPowers = [ 150, 120, 80, 60, 40 ]; if (this.invert) { // Gyro ball uses a specific formula - let userSpeed = user.getBattleStat(this.stat); + const userSpeed = user.getBattleStat(this.stat); if (userSpeed < 1) { // Gen 6+ always have 1 base power power.value = 1; return true; } - let bp = Math.floor(Math.min(150, 25 * target.getBattleStat(this.stat) / userSpeed + 1)); + const bp = Math.floor(Math.min(150, 25 * target.getBattleStat(this.stat) / userSpeed + 1)); power.value = bp; return true; }