From 21130b29f8ac047be54c42daf34d33ebb9fe1332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 9 Aug 2025 12:39:20 -0500 Subject: [PATCH] fix: 90 / 2 --- .../GunFlexibilityVisualizer/index.tsx | 17 +++++++++-------- .../components/RicochetVisualizer/index.tsx | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/GunFlexibilityVisualizer/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/GunFlexibilityVisualizer/index.tsx index a08728136..c3460eb95 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/GunFlexibilityVisualizer/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/GunFlexibilityVisualizer/index.tsx @@ -40,12 +40,12 @@ export function GunFlexibilityVisualizer() { } else if (b) { d += `M ${c(-90 + b.range / 2 + t, mo)}`; } else { - d += `M ${c(-90 / 2, mo)}`; + d += `M ${c(-90, mo)}`; } if (f) { d += `A ${mo} ${mo} 0 0 0 ${c(90 - f.range / 2 - t, mo)}`; } else { - d += `A ${mo} ${mo} 0 0 0 ${c(90 / 2, mo)}`; + d += `A ${mo} ${mo} 0 0 0 ${c(90, mo)}`; } // front @@ -59,14 +59,15 @@ export function GunFlexibilityVisualizer() { if (f) { d += `L ${c(90 + f.range / 2 + t, mo)}`; } else { - d += `L ${c(90 / 2, mo)}`; + d += `L ${c(90, mo)}`; } if (y) { d += `A ${mo} ${mo} 0 0 0 ${c(90 - y.min, mo)}`; } else if (b) { d += `A ${mo} ${mo} 0 0 0 ${c(-90 - b.range / 2 - t, mo)}`; } else { - d += `A ${mo} ${mo} 0 0 0 ${c(-90 / 2, mo)}`; + console.log('this should log 0'); + d += `A ${mo} ${mo} 0 0 0 ${c(-90, mo)}`; } // back @@ -85,12 +86,12 @@ export function GunFlexibilityVisualizer() { } else if (b) { d += `M ${c(-90 + b.range / 2 + t, mi)}`; } else { - d += `M ${c(-90 / 2, mi)}`; + d += `M ${c(-90, mi)}`; } if (f) { d += `A ${mi} ${mi} 0 0 0 ${c(90 - f.range / 2 - t, mi)}`; } else { - d += `A ${mi} ${mi} 0 0 0 ${c(90 / 2, mi)}`; + d += `A ${mi} ${mi} 0 0 0 ${c(90, mi)}`; } // front @@ -104,14 +105,14 @@ export function GunFlexibilityVisualizer() { if (f) { d += `L ${c(90 + f.range / 2 + t, mi)}`; } else { - d += `L ${c(90 / 2, mi)}`; + d += `L ${c(90, mi)}`; } if (y) { d += `A ${mi} ${mi} 0 0 0 ${c(90 - y.min, mi)}`; } else if (b) { d += `A ${mi} ${mi} 0 0 0 ${c(-90 - b.range / 2 - t, mi)}`; } else { - d += `A ${mi} ${mi} 0 0 0 ${c(-90 / 2, mi)}`; + d += `A ${mi} ${mi} 0 0 0 ${c(-90, mi)}`; } // back diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer/index.tsx index 520eee968..e297a6c19 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer/index.tsx @@ -28,6 +28,7 @@ export function RicochetVisualizer({ stats }: StatsAcceptorProps) { return ( {