mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: percentage resistances
This commit is contained in:
1 parent
5c787dfd7f
commit
ef5169f669
3 files changed
+9
-9
No files matched your search
@@ -243,21 +243,21 @@ export function Body({ stats }: BodyProps) {
|
||||
stats={stats}
|
||||
name="Terrain coefficient"
|
||||
value="hardTerrainCoefficient"
|
||||
decimals={1}
|
||||
decimals={0}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
name="medium terrain"
|
||||
indent
|
||||
value="mediumTerrainCoefficient"
|
||||
decimals={1}
|
||||
decimals={0}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
name="soft terrain"
|
||||
indent
|
||||
value="softTerrainCoefficient"
|
||||
decimals={1}
|
||||
decimals={0}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
|
||||
@@ -536,13 +536,13 @@ export function Characteristics() {
|
||||
{stats.weight}
|
||||
</InfoWithDelta>
|
||||
<Info name="Terrain coefficients" />
|
||||
<InfoWithDelta decimals={1} indent name="Hard">
|
||||
<InfoWithDelta decimals={0} unit="%" indent name="Hard">
|
||||
{stats.hardTerrainCoefficient}
|
||||
</InfoWithDelta>
|
||||
<InfoWithDelta decimals={1} indent name="Medium">
|
||||
<InfoWithDelta decimals={0} unit="%" indent name="Medium">
|
||||
{stats.mediumTerrainCoefficient}
|
||||
</InfoWithDelta>
|
||||
<InfoWithDelta decimals={1} indent name="Soft">
|
||||
<InfoWithDelta decimals={0} unit="%" indent name="Soft">
|
||||
{stats.softTerrainCoefficient}
|
||||
</InfoWithDelta>
|
||||
<Info name="Power to weight ratio" unit="hp/tn" />
|
||||
|
||||
@@ -409,11 +409,11 @@ export function tankCharacteristics(
|
||||
const speedBackwards = tank.speed.backwards + speedBackwardsSum;
|
||||
const enginePower = resolvedEnginePower;
|
||||
const hardTerrainCoefficient =
|
||||
track.resistance.hard * resistanceHardCoefficient;
|
||||
100 / (track.resistance.hard * resistanceHardCoefficient);
|
||||
const mediumTerrainCoefficient =
|
||||
track.resistance.medium * resistanceMediumCoefficient;
|
||||
100 / (track.resistance.medium * resistanceMediumCoefficient);
|
||||
const softTerrainCoefficient =
|
||||
track.resistance.soft * resistanceSoftCoefficient;
|
||||
100 / (track.resistance.soft * resistanceSoftCoefficient);
|
||||
const powerToWeightRatioHardTerrain =
|
||||
resolvedEnginePower / weightTons / hardTerrainCoefficient;
|
||||
const powerToWeightRatioMediumTerrain =
|
||||
|
||||
Reference in new issue
Block a user