mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: penetration deltas
This commit is contained in:
1 parent
574b1eec92
commit
8f098d435a
1 file changed
+3
-20
@@ -183,28 +183,11 @@ export function Characteristics() {
|
|||||||
<InfoWithDelta name="Caliber" decimals={0} unit="mm">
|
<InfoWithDelta name="Caliber" decimals={0} unit="mm">
|
||||||
{shell.caliber}
|
{shell.caliber}
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
{typeof shell.penetration !== 'number' && (
|
<InfoWithDelta decimals={0} name="Penetration" unit="mm">
|
||||||
<Info name="Penetration" unit="mm" />
|
{resolveNearPenetration(shell.penetration) * calibratedShellsBonus}
|
||||||
)}
|
</InfoWithDelta>
|
||||||
{typeof shell.penetration === 'number' && (
|
|
||||||
<InfoWithDelta
|
|
||||||
indent={typeof shell.penetration !== 'number'}
|
|
||||||
decimals={0}
|
|
||||||
name="Penetration"
|
|
||||||
>
|
|
||||||
{resolveNearPenetration(shell.penetration) * calibratedShellsBonus}
|
|
||||||
</InfoWithDelta>
|
|
||||||
)}
|
|
||||||
{typeof shell.penetration !== 'number' && (
|
{typeof shell.penetration !== 'number' && (
|
||||||
<>
|
<>
|
||||||
<InfoWithDelta
|
|
||||||
delta={shell.penetration[0]}
|
|
||||||
indent
|
|
||||||
decimals={0}
|
|
||||||
name="At 0m"
|
|
||||||
>
|
|
||||||
{shell.penetration[0] * calibratedShellsBonus}
|
|
||||||
</InfoWithDelta>
|
|
||||||
<Info
|
<Info
|
||||||
delta={
|
delta={
|
||||||
(lerp(
|
(lerp(
|
||||||
|
|||||||
Reference in new issue
Block a user