mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +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">
|
||||
{shell.caliber}
|
||||
</InfoWithDelta>
|
||||
{typeof shell.penetration !== 'number' && (
|
||||
<Info name="Penetration" unit="mm" />
|
||||
)}
|
||||
{typeof shell.penetration === 'number' && (
|
||||
<InfoWithDelta
|
||||
indent={typeof shell.penetration !== 'number'}
|
||||
decimals={0}
|
||||
name="Penetration"
|
||||
>
|
||||
{resolveNearPenetration(shell.penetration) * calibratedShellsBonus}
|
||||
</InfoWithDelta>
|
||||
)}
|
||||
<InfoWithDelta decimals={0} name="Penetration" unit="mm">
|
||||
{resolveNearPenetration(shell.penetration) * calibratedShellsBonus}
|
||||
</InfoWithDelta>
|
||||
{typeof shell.penetration !== 'number' && (
|
||||
<>
|
||||
<InfoWithDelta
|
||||
delta={shell.penetration[0]}
|
||||
indent
|
||||
decimals={0}
|
||||
name="At 0m"
|
||||
>
|
||||
{shell.penetration[0] * calibratedShellsBonus}
|
||||
</InfoWithDelta>
|
||||
<Info
|
||||
delta={
|
||||
(lerp(
|
||||
|
||||
Reference in new issue
Block a user