From eef26defb4593b6b20a54165b630d3f4ae8ce9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 3 Sep 2024 21:54:35 -0500 Subject: [PATCH] feat: raw terrain coeffs --- src/app/tools/compare/components/Body.tsx | 20 +++++++++++++++++++ .../[id]/components/Characteristics/index.tsx | 13 +++++++++--- src/core/blitzkit/tankCharacteristics.ts | 3 +++ 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/app/tools/compare/components/Body.tsx b/src/app/tools/compare/components/Body.tsx index e0f9e5ef8..e49ee84cd 100644 --- a/src/app/tools/compare/components/Body.tsx +++ b/src/app/tools/compare/components/Body.tsx @@ -259,6 +259,26 @@ export function Body({ stats }: BodyProps) { value="softTerrainCoefficient" decimals={0} /> + + + state.protagonist.consumables); const camouflage = Duel.use((state) => state.protagonist.camouflage); const equipmentMatrix = Duel.use( @@ -71,7 +69,6 @@ export function Characteristics() { const stockTrack = tank.tracks[0]; const stockTurret = tank.turrets[0]; const stockGun = stockTurret.guns[0]; - const awaitedModelDefinitions = use(modelDefinitions); const tankModelDefinition = useTankModelDefinition(); const turretModelDefinition = tankModelDefinition.turrets[turret.id]; const gunModelDefinition = turretModelDefinition.guns[gun.id]; @@ -546,6 +543,16 @@ export function Characteristics() { {stats.softTerrainCoefficient} + + + {stats.hardTerrainCoefficientRaw} + + + {stats.mediumTerrainCoefficientRaw} + + + {stats.softTerrainCoefficientRaw} + {stats.powerToWeightRatioHardTerrain} diff --git a/src/core/blitzkit/tankCharacteristics.ts b/src/core/blitzkit/tankCharacteristics.ts index 884950f30..6f72ce8b6 100644 --- a/src/core/blitzkit/tankCharacteristics.ts +++ b/src/core/blitzkit/tankCharacteristics.ts @@ -519,8 +519,11 @@ export function tankCharacteristics( speedForwards, speedBackwards, hardTerrainCoefficient, + hardTerrainCoefficientRaw, mediumTerrainCoefficient, + mediumTerrainCoefficientRaw, softTerrainCoefficient, + softTerrainCoefficientRaw, enginePower, powerToWeightRatioHardTerrain, powerToWeightRatioMediumTerrain,