fix: stat display

This commit is contained in:
tresabhi committed 2024-11-09 19:20:41 -06:00
1 parent 3da154b75d
commit 3b933f2cbc
4 files changed
+9 -5

No files matched your search

@@ -15,21 +15,21 @@ export function GunAutoloaderIcon(props: ComponentProps<'svg'>) {
fill="currentColor"
stroke="currentColor"
stroke-width="2"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M37.5999 55H26.3999V29.1692C26.3999 17.4923 27.3313 13.634 31.9999 9C36.6685 13.634 37.5999 17.4923 37.5999 29.1692V55Z"
fill="currentColor"
stroke="currentColor"
stroke-width="2"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M53.0003 55H41.8003V29.1692C41.8003 17.4923 42.7317 13.634 47.4003 9C52.0689 13.634 53.0003 17.4923 53.0003 29.1692V55Z"
fill="currentColor"
stroke="currentColor"
stroke-width="2"
stroke-linejoin="round"
strokeLinejoin="round"
/>
</svg>
);
@@ -16,7 +16,7 @@ export function GunAutoreloaderIcon(props: ComponentProps<'svg'>) {
fill="currentColor"
stroke="currentColor"
stroke-width="2"
stroke-linejoin="round"
strokeLinejoin="round"
/>
<path
d="M56.7296 23.5339L57.0556 11.9915L46.8965 17.4804L56.7296 23.5339ZM57.0909 41.3937C57.2968 40.8813 57.0483 40.2989 56.5358 40.093C56.0234 39.8871 55.441 40.1356 55.2351 40.648L57.0909 41.3937ZM49.8241 48.8241C40.2563 58.392 24.7437 58.392 15.1759 48.8241L13.7617 50.2383C24.1106 60.5872 40.8894 60.5872 51.2383 50.2383L49.8241 48.8241ZM15.1759 48.8241C5.60804 39.2563 5.60804 23.7437 15.1759 14.1759L13.7617 12.7617C3.41278 23.1106 3.41278 39.8894 13.7617 50.2383L15.1759 48.8241ZM15.1759 14.1759C24.7437 4.60805 40.2563 4.60805 49.8241 14.1759L51.2383 12.7617C40.8894 2.41278 24.1106 2.41278 13.7617 12.7617L15.1759 14.1759ZM49.8241 14.1759C50.4853 14.837 51.1005 15.5263 51.6699 16.2397L53.233 14.992C52.6172 14.2205 51.9523 13.4756 51.2383 12.7617L49.8241 14.1759ZM55.2351 40.648C54.0398 43.6229 52.2368 46.4114 49.8241 48.8241L51.2383 50.2383C53.8453 47.6314 55.7968 44.6143 57.0909 41.3937L55.2351 40.648Z"
@@ -15,7 +15,7 @@ export function GunRegularIcon(props: ComponentProps<'svg'>) {
fill="currentColor"
stroke="currentColor"
stroke-width="2"
stroke-linejoin="round"
strokeLinejoin="round"
/>
</svg>
);
@@ -63,6 +63,10 @@ export function TankCard({ tank, onSelect }: TankCardProps) {
return shell1 ? shell1.penetration.near.toFixed(0) : '--';
case 'fire.shellVelocity':
return shell0.velocity.toFixed(0);
case 'fire.shellCapacity':
return gun.gun_type!.value.base.shell_capacity.toFixed(0);
case 'fire.shellRange':
return shell0.range.toFixed(0);
case 'fire.gunDepression':
return (
gunModelDefinition.pitch.max +