fix: max dpm on double shot auto reloaders

This commit is contained in:
TrèsAbhi committed 2024-04-16 13:45:03 -05:00
1 parent 7aa0b65d1d
commit 2b27954a3b
1 file changed
+5 -1
+5 -1
View File
@@ -291,7 +291,11 @@ export function tankCharacteristics(
);
const dpmMaximum =
gun.type === 'autoReloader'
? gun.reload.at(-1)! < gun.reload.at(-2)!
? (
gun.count > 2
? gun.reload.at(-1)! < gun.reload.at(-2)!
: gun.reload.at(-1)! + gun.intraClip < gun.reload.at(-2)!
)
? ((damageCoefficient * shell.damage.armor) /
(gun.reload.at(-1)! * reloadCoefficient +
gun.intraClip * intraClipCoefficient)) *