From ecd2f747f1dd25897e63598a4d74e4dea343ec12 Mon Sep 17 00:00:00 2001 From: Sendou <38327916+Sendouc@users.noreply.github.com> Date: Tue, 2 Jun 2020 21:34:17 +0300 Subject: [PATCH] splatling mpu shooting time fix --- frontend-react/src/hooks/useAbilityEffects.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend-react/src/hooks/useAbilityEffects.ts b/frontend-react/src/hooks/useAbilityEffects.ts index 336f43d4d..aa36a0c80 100644 --- a/frontend-react/src/hooks/useAbilityEffects.ts +++ b/frontend-react/src/hooks/useAbilityEffects.ts @@ -2016,12 +2016,11 @@ export default function useAbilityEffects( const effect = getEffect(highMidLow, amount) - const firstCircle = buildWeaponData.mFirstPeriodMaxChargeShootingFrame_2 const secondCircle = buildWeaponData.mSecondPeriodMaxChargeShootingFrame_2 - const total = Math.ceil((firstCircle + secondCircle) * effect[0]) + const total = Math.ceil(secondCircle * effect[0]) const maxTotal = Math.ceil( - (firstCircle + secondCircle) * getEffect(highMidLow, MAX_AP)[0] + secondCircle * getEffect(highMidLow, MAX_AP)[0] ) toReturn.push({ title: `${build.weapon} full charged shooting duration`, @@ -2033,9 +2032,7 @@ export default function useAbilityEffects( ability: "MPU" as Ability, ap: amount, getEffect: (ap: number) => - Math.ceil( - (firstCircle + secondCircle) * getEffect(highMidLow, ap)[0] - ), + Math.ceil(secondCircle * getEffect(highMidLow, ap)[0]), }) }