mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: camo net now affects all stats
This commit is contained in:
1 parent
f13b0f2255
commit
bc4fa60f67
1 file changed
+27
-44
@@ -55,6 +55,13 @@ export function Characteristics() {
|
|||||||
const hasImprovedVerticalStabilizer = useEquipment(122);
|
const hasImprovedVerticalStabilizer = useEquipment(122);
|
||||||
const hasImprovedSuspension = useEquipment(123);
|
const hasImprovedSuspension = useEquipment(123);
|
||||||
const penetrationDistanceInput = useRef<HTMLInputElement>(null);
|
const penetrationDistanceInput = useRef<HTMLInputElement>(null);
|
||||||
|
const camouflageNetBonus = hasCamouflageNet
|
||||||
|
? tank.type === 'heavy'
|
||||||
|
? 1.03
|
||||||
|
: tank.type === 'tankDestroyer'
|
||||||
|
? 1.07
|
||||||
|
: 1.05
|
||||||
|
: 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO:
|
* TODO:
|
||||||
@@ -429,53 +436,29 @@ export function Characteristics() {
|
|||||||
: 1)}
|
: 1)}
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
<Info name="Camouflage" unit="%" />
|
<Info name="Camouflage" unit="%" />
|
||||||
<InfoWithDelta
|
<InfoWithDelta indent name="Still" decimals={2}>
|
||||||
indent
|
{tank.camouflage.still * camouflageNetBonus * 100}
|
||||||
name="Still"
|
</InfoWithDelta>
|
||||||
decimals={2}
|
<InfoWithDelta indent name="Moving" decimals={2}>
|
||||||
deltaType="lowerIsBetter"
|
{tank.camouflage.moving * camouflageNetBonus * 100}
|
||||||
>
|
</InfoWithDelta>
|
||||||
|
<InfoWithDelta indent name="Shooting still" decimals={2}>
|
||||||
{tank.camouflage.still *
|
{tank.camouflage.still *
|
||||||
100 *
|
gun.camouflageLoss *
|
||||||
(hasCamouflageNet
|
camouflageNetBonus *
|
||||||
? tank.type === 'heavy'
|
100}
|
||||||
? 1.03
|
|
||||||
: tank.type === 'tankDestroyer'
|
|
||||||
? 1.07
|
|
||||||
: 1.05
|
|
||||||
: 1)}
|
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
<InfoWithDelta
|
<InfoWithDelta indent name="Shooting on move" decimals={2}>
|
||||||
indent
|
{tank.camouflage.moving *
|
||||||
name="Moving"
|
gun.camouflageLoss *
|
||||||
decimals={2}
|
camouflageNetBonus *
|
||||||
deltaType="lowerIsBetter"
|
100}
|
||||||
>
|
|
||||||
{tank.camouflage.moving * 100}
|
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
<InfoWithDelta
|
<InfoWithDelta indent name="On fire" decimals={2}>
|
||||||
indent
|
{tank.camouflage.onFire *
|
||||||
name="Shooting still"
|
tank.camouflage.still *
|
||||||
decimals={2}
|
camouflageNetBonus *
|
||||||
deltaType="lowerIsBetter"
|
100}
|
||||||
>
|
|
||||||
{tank.camouflage.still * gun.camouflageLoss * 100}
|
|
||||||
</InfoWithDelta>
|
|
||||||
<InfoWithDelta
|
|
||||||
indent
|
|
||||||
name="Shooting on move"
|
|
||||||
decimals={2}
|
|
||||||
deltaType="lowerIsBetter"
|
|
||||||
>
|
|
||||||
{tank.camouflage.moving * gun.camouflageLoss * 100}
|
|
||||||
</InfoWithDelta>
|
|
||||||
<InfoWithDelta
|
|
||||||
indent
|
|
||||||
name="On fire"
|
|
||||||
decimals={2}
|
|
||||||
deltaType="lowerIsBetter"
|
|
||||||
>
|
|
||||||
{tank.camouflage.onFire * tank.camouflage.still * 100}
|
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
<Info name="Size" unit="m">
|
<Info name="Size" unit="m">
|
||||||
{size[0].toFixed(2)} x {size[2].toFixed(2)} x {size[1].toFixed(2)}
|
{size[0].toFixed(2)} x {size[2].toFixed(2)} x {size[1].toFixed(2)}
|
||||||
|
|||||||
Reference in new issue
Block a user