From b7558c33da1ab60b614f377fa6ab133dca956561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Fri, 16 Feb 2024 23:12:53 -0600 Subject: [PATCH] feat: rest of provisions --- .../[id]/components/Characteristics/index.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx index b423c689c..ab378fed1 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx @@ -81,6 +81,8 @@ export function Characteristics() { const hasSandbagArmor = useProvision(28); const hasEnhancedSandbagArmor = useProvision(29); const hasImprovedGunPowder = useProvision(46); + const hasGearOil = useProvision(44); + const hasImprovedGearOil = useProvision(45); const healthCoefficient = coefficient( [hasSandbagArmor, 0.03], @@ -131,6 +133,8 @@ export function Characteristics() { [hasImprovedEnginePowerBoost, 0.4], [hasStandardFuel, 0.03], [hasImprovedFuel, 0.1], + [hasGearOil, 0.03], + [hasImprovedGearOil, 0.06], ); const turretTraverseCoefficient = coefficient( [hasStandardFuel, 0.03], @@ -147,8 +151,16 @@ export function Characteristics() { ]); const fireChanceCoefficient = coefficient([hasProtectiveKit, -0.2]); - const speedForwardsSum = sum([hasImprovedEnginePowerBoost, 5]); - const speedBackwardsSum = sum([hasImprovedEnginePowerBoost, 10]); + const speedForwardsSum = sum( + [hasImprovedEnginePowerBoost, 5], + [hasGearOil, 2], + [hasImprovedGearOil, 4], + ); + const speedBackwardsSum = sum( + [hasImprovedEnginePowerBoost, 10], + [hasGearOil, 2], + [hasImprovedGearOil, 4], + ); const camouflageSumMoving = sum( [ hasCamouflageNet,