fix: max dpm on double shot auto reloaders

This commit is contained in:
TrèsAbhi committed 2024-04-16 09:24:28 -05:00
1 parent 4ff5f7cdeb
commit b29f7ca7f5
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)) *