mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: change order
This commit is contained in:
1 parent
9d805f63d5
commit
fdc662fedf
1 file changed
+18
-18
@@ -228,6 +228,24 @@ export function Characteristics() {
|
||||
)}
|
||||
{typeof shell.penetration !== 'number' && (
|
||||
<>
|
||||
<Info
|
||||
delta={
|
||||
lerp(
|
||||
shell.penetration[0],
|
||||
shell.penetration[1],
|
||||
penetrationDistance / 500,
|
||||
) - shell.penetration[0]
|
||||
}
|
||||
indent
|
||||
decimals={0}
|
||||
name={`At ${penetrationDistance}m`}
|
||||
>
|
||||
{lerp(
|
||||
shell.penetration[0],
|
||||
shell.penetration[1],
|
||||
penetrationDistance / 500,
|
||||
)}
|
||||
</Info>
|
||||
<Flex align="center" gap="2" style={{ paddingLeft: 24 }}>
|
||||
<Text>Distance</Text>
|
||||
<Slider
|
||||
@@ -261,24 +279,6 @@ export function Characteristics() {
|
||||
<TextField.Slot>m</TextField.Slot>
|
||||
</TextField.Root>
|
||||
</Flex>
|
||||
<Info
|
||||
delta={
|
||||
lerp(
|
||||
shell.penetration[0],
|
||||
shell.penetration[1],
|
||||
penetrationDistance / 500,
|
||||
) - shell.penetration[0]
|
||||
}
|
||||
indent
|
||||
decimals={0}
|
||||
name={`At ${penetrationDistance}m`}
|
||||
>
|
||||
{lerp(
|
||||
shell.penetration[0],
|
||||
shell.penetration[1],
|
||||
penetrationDistance / 500,
|
||||
)}
|
||||
</Info>
|
||||
</>
|
||||
)}
|
||||
<InfoWithDelta name="Damage" unit="hp">
|
||||
|
||||
Reference in new issue
Block a user