mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: 2 decimal places camo
This commit is contained in:
1 parent
b95d021144
commit
1ea1b7fa41
2 files changed
+15
-15
No files matched your search
@@ -366,40 +366,40 @@ export function Body({ stats }: BodyProps) {
|
||||
stats={stats}
|
||||
name="Camouflage"
|
||||
value="camouflageStill"
|
||||
display={(stats) => (stats.camouflageStill * 100).toFixed(0)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(0)}
|
||||
display={(stats) => (stats.camouflageStill * 100).toFixed(2)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(2)}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
name="moving"
|
||||
indent
|
||||
value="camouflageMoving"
|
||||
display={(stats) => (stats.camouflageMoving * 100).toFixed(0)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(0)}
|
||||
display={(stats) => (stats.camouflageMoving * 100).toFixed(2)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(2)}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
name="shooting"
|
||||
indent
|
||||
value="camouflageShootingStill"
|
||||
display={(stats) => (stats.camouflageShootingStill * 100).toFixed(0)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(0)}
|
||||
display={(stats) => (stats.camouflageShootingStill * 100).toFixed(2)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(2)}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
name="shooting & moving"
|
||||
indent
|
||||
value="camouflageShootingMoving"
|
||||
display={(stats) => (stats.camouflageShootingMoving * 100).toFixed(0)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(0)}
|
||||
display={(stats) => (stats.camouflageShootingMoving * 100).toFixed(2)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(2)}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
name="caught on fire"
|
||||
indent
|
||||
value="camouflageCaughtOnFire"
|
||||
display={(stats) => (stats.camouflageCaughtOnFire * 100).toFixed(0)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(0)}
|
||||
display={(stats) => (stats.camouflageCaughtOnFire * 100).toFixed(2)}
|
||||
deltaNominalDisplay={(delta) => (delta * 100).toFixed(2)}
|
||||
/>
|
||||
<CompareRow
|
||||
stats={stats}
|
||||
|
||||
+5
-5
@@ -601,19 +601,19 @@ export function Characteristics() {
|
||||
{stats.viewRange}
|
||||
</InfoWithDelta>
|
||||
<Info name="Camouflage" unit="%" />
|
||||
<InfoWithDelta indent name="Still" decimals={0}>
|
||||
<InfoWithDelta indent name="Still" decimals={2}>
|
||||
{stats.camouflageStill * 100}
|
||||
</InfoWithDelta>
|
||||
<InfoWithDelta indent name="Moving" decimals={0}>
|
||||
<InfoWithDelta indent name="Moving" decimals={2}>
|
||||
{stats.camouflageMoving * 100}
|
||||
</InfoWithDelta>
|
||||
<InfoWithDelta indent name="Shooting still" decimals={0}>
|
||||
<InfoWithDelta indent name="Shooting still" decimals={2}>
|
||||
{stats.camouflageShootingStill * 100}
|
||||
</InfoWithDelta>
|
||||
<InfoWithDelta indent name="Shooting moving" decimals={0}>
|
||||
<InfoWithDelta indent name="Shooting moving" decimals={2}>
|
||||
{stats.camouflageShootingMoving * 100}
|
||||
</InfoWithDelta>
|
||||
<InfoWithDelta indent name="Caught on fire" decimals={0}>
|
||||
<InfoWithDelta indent name="Caught on fire" decimals={2}>
|
||||
{stats.camouflageCaughtOnFire * 100}
|
||||
</InfoWithDelta>
|
||||
<Info name="Width" unit="m" decimals={0} deltaType="lowerIsBetter">
|
||||
|
||||
Reference in new issue
Block a user