This commit is contained in:
TrèsAbhi committed 2024-02-03 16:33:33 -06:00
1 parent fcac511a28
commit 273ab97d3f
2 files changed
+4 -4

No files matched your search

@@ -29,7 +29,7 @@ export function Characteristics() {
if (gun.type === 'regular') { if (gun.type === 'regular') {
dpm = (shell.damage.armor / gun.reload) * 60; dpm = (shell.damage.armor / gun.reload) * 60;
} else if (gun.type === 'auto_loader') { } else if (gun.type === 'autoLoader') {
dpm = dpm =
((shell.damage.armor * gun.count) / ((shell.damage.armor * gun.count) /
(gun.reload + (gun.count - 1) * gun.interClip)) * (gun.reload + (gun.count - 1) * gun.interClip)) *
@@ -82,7 +82,7 @@ export function Characteristics() {
<Info name="Damage per minute" unit="hp / min"> <Info name="Damage per minute" unit="hp / min">
{dpm.toFixed(0)} {dpm.toFixed(0)}
</Info> </Info>
{gun.type === 'auto_reloader' && ( {gun.type === 'autoReloader' && (
<> <>
<Info indent name="Maximum" unit="hp / min"> <Info indent name="Maximum" unit="hp / min">
{gun.reload.at(-1)! < gun.reload.at(-2)! {gun.reload.at(-1)! < gun.reload.at(-2)!
@@ -124,7 +124,7 @@ export function Characteristics() {
</Info> </Info>
</> </>
)} )}
{gun.type === 'auto_reloader' ? ( {gun.type === 'autoReloader' ? (
gun.reload.map((reload, index) => ( gun.reload.map((reload, index) => (
<Info <Info
indent={index > 0} indent={index > 0}
@@ -125,7 +125,7 @@ export function TankSearch({ compact, onSelect = () => {} }: TankSearchProps) {
go(event.target.value, searchableTanks, { go(event.target.value, searchableTanks, {
keys: [ keys: [
'name', 'name',
'name_full', 'nameFull',
'id', 'id',
] satisfies (keyof TankDefinition)[], ] satisfies (keyof TankDefinition)[],
}).map(({ obj }) => obj), }).map(({ obj }) => obj),