mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: max dispersion
This commit is contained in:
1 parent
0136dda0dd
commit
4bcd3bffdc
3 files changed
+24
No files matched your search
@@ -1299,6 +1299,12 @@ export default function Page() {
|
|||||||
deltaType="lowerIsBetter"
|
deltaType="lowerIsBetter"
|
||||||
decimals={3}
|
decimals={3}
|
||||||
/>
|
/>
|
||||||
|
<Row
|
||||||
|
name="Max dispersion"
|
||||||
|
value="maxDispersion"
|
||||||
|
deltaType="lowerIsBetter"
|
||||||
|
decimals={3}
|
||||||
|
/>
|
||||||
<Row name="Gun depression" value="gunDepression" decimals={1} />
|
<Row name="Gun depression" value="gunDepression" decimals={1} />
|
||||||
<Row name="Gun elevation" value="gunElevation" decimals={1} />
|
<Row name="Gun elevation" value="gunElevation" decimals={1} />
|
||||||
</Table.Body>
|
</Table.Body>
|
||||||
|
|||||||
@@ -388,6 +388,15 @@ export function Characteristics() {
|
|||||||
>
|
>
|
||||||
{stats.dispersionGunDamaged}
|
{stats.dispersionGunDamaged}
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
|
<InfoWithDelta
|
||||||
|
decimals={3}
|
||||||
|
indent
|
||||||
|
name="Maximum"
|
||||||
|
unit="m"
|
||||||
|
deltaType="lowerIsBetter"
|
||||||
|
>
|
||||||
|
{stats.maxDispersion}
|
||||||
|
</InfoWithDelta>
|
||||||
<Info name="Gun flexibility" unit="°" />
|
<Info name="Gun flexibility" unit="°" />
|
||||||
<InfoWithDelta decimals={1} indent name="Depression">
|
<InfoWithDelta decimals={1} indent name="Depression">
|
||||||
{stats.gunDepression}
|
{stats.gunDepression}
|
||||||
|
|||||||
@@ -364,6 +364,14 @@ export function tankCharacteristics(
|
|||||||
const shellVelocity = shell.speed * shellVelocityCoefficient;
|
const shellVelocity = shell.speed * shellVelocityCoefficient;
|
||||||
const aimTime = gun.aimTime * aimTimeCoefficient;
|
const aimTime = gun.aimTime * aimTimeCoefficient;
|
||||||
const dispersion = gun.dispersion.base * dispersionStillCoefficient;
|
const dispersion = gun.dispersion.base * dispersionStillCoefficient;
|
||||||
|
const maxDispersion =
|
||||||
|
gun.dispersion.base *
|
||||||
|
Math.sqrt(
|
||||||
|
((gun.dispersion.traverse * turret.traverseSpeed) ** 2 +
|
||||||
|
(track.dispersion.traverse * track.traverseSpeed) ** 2 +
|
||||||
|
track.dispersion.move * tank.speed.forwards) **
|
||||||
|
2,
|
||||||
|
);
|
||||||
const dispersionMoving = track.dispersion.move * dispersionMovingCoefficient;
|
const dispersionMoving = track.dispersion.move * dispersionMovingCoefficient;
|
||||||
const dispersionHullTraversing =
|
const dispersionHullTraversing =
|
||||||
track.dispersion.traverse * dispersionHullTraverseCoefficient;
|
track.dispersion.traverse * dispersionHullTraverseCoefficient;
|
||||||
@@ -474,6 +482,7 @@ export function tankCharacteristics(
|
|||||||
shellVelocity,
|
shellVelocity,
|
||||||
aimTime,
|
aimTime,
|
||||||
dispersion,
|
dispersion,
|
||||||
|
maxDispersion,
|
||||||
dispersionMoving,
|
dispersionMoving,
|
||||||
dispersionHullTraversing,
|
dispersionHullTraversing,
|
||||||
dispersionTurretTraversing,
|
dispersionTurretTraversing,
|
||||||
|
|||||||
Reference in new issue
Block a user