fix: correct shell count

This commit is contained in:
TrèsAbhi committed 2024-04-09 10:03:30 -05:00
1 parent 74756ab7bf
commit 030ca744e9
1 file changed
+1 -1
+1 -1
View File
@@ -310,7 +310,7 @@ export function tankCharacteristics(
intraClipCoefficient) +
damageCoefficient * shell.damage.armor * gun.reload.slice(1).length
: undefined;
const shells = gun.type === 'regular' ? 1 : gun.shells.length;
const shells = gun.type === 'regular' ? 1 : gun.count;
const mostOptimalShellIndex =
gun.type === 'autoReloader'
? gun.reload.at(-1)! < gun.reload.at(-2)!