feat: module damage

This commit is contained in:
tresabhi committed 2024-11-09 19:22:21 -06:00
1 parent 3b933f2cbc
commit e4a35600a4
4 files changed
+22

No files matched your search

@@ -255,6 +255,16 @@ export const TankSearch = memo<TankSearchProps>(
);
break;
case 'fire.moduleDamage':
sorted = filtered.sort(
(a, b) =>
a.turrets.at(-1)!.guns.at(-1)!.gun_type!.value.base.shells[0]
.module_damage -
b.turrets.at(-1)!.guns.at(-1)!.gun_type!.value.base.shells[0]
.module_damage,
);
break;
case 'fire.shellVelocity':
sorted = filtered.sort(
(a, b) =>