From 30e4e4e9b33351031ccbe7856bc35eba293ad742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:46:48 -0500 Subject: [PATCH] fix: autoreloader dpm by crew stats --- .../[id]/components/Characteristics/index.tsx | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx index 5ff824628..f0f77649c 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx @@ -268,9 +268,13 @@ export function Characteristics() { <> {gun.reload.at(-1)! < gun.reload.at(-2)! - ? (shell.damage.armor / (gun.reload.at(-1)! + gun.intraClip)) * + ? ((damageCoefficient * shell.damage.armor) / + (gun.reload.at(-1)! * reloadCoefficient + + gun.intraClip * intraClipCoefficient)) * 60 - : (shell.damage.armor / gun.reload[0]) * 60} + : ((damageCoefficient * shell.damage.armor) / + (gun.reload[0] * reloadCoefficient)) * + 60} {gun.reload.at(-1)! < gun.reload.at(-2)! - ? (shell.damage.armor / (gun.reload.at(-1)! + gun.intraClip)) * + ? ((damageCoefficient * shell.damage.armor) / + (gun.reload.at(-1)! * reloadCoefficient + + gun.intraClip * intraClipCoefficient)) * (60 - - (gun.reload.slice(0, -1).length - 1) * gun.intraClip) + - shell.damage.armor * gun.reload.slice(0, -1).length - : (shell.damage.armor / (gun.reload[0] + gun.intraClip)) * - (60 - (gun.reload.slice(1).length - 1) * gun.intraClip) + - shell.damage.armor * gun.reload.slice(1).length} + (gun.reload.slice(0, -1).length - 1) * + gun.intraClip * + intraClipCoefficient) + + damageCoefficient * + shell.damage.armor * + gun.reload.slice(0, -1).length + : ((damageCoefficient * shell.damage.armor) / + (gun.reload[0] * reloadCoefficient + + gun.intraClip * intraClipCoefficient)) * + (60 - + (gun.reload.slice(1).length - 1) * + gun.intraClip * + intraClipCoefficient) + + damageCoefficient * + shell.damage.armor * + gun.reload.slice(1).length}