mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
fix: most optimal shell index
This commit is contained in:
1 parent
820c125912
commit
8d32c7ce23
2 files changed
+5
-4
No files matched your search
@@ -343,11 +343,12 @@ export function tankCharacteristics(
|
||||
damageCoefficient * shell.damage.armor * gun.reload.slice(1).length
|
||||
: undefined;
|
||||
const shells = gun.type === 'regular' ? 1 : gun.count;
|
||||
console.log(gun.reload);
|
||||
const mostOptimalShellIndex =
|
||||
gun.type === 'autoReloader'
|
||||
? gun.reload.at(-1)! < gun.reload.at(-2)!
|
||||
? gun.reload.length
|
||||
: 1
|
||||
? gun.reload[0] + gun.intraClip < gun.reload[1]
|
||||
? 1
|
||||
: gun.reload.length
|
||||
: undefined;
|
||||
const shellReloads =
|
||||
gun.type === 'autoReloader'
|
||||
|
||||
Reference in new issue
Block a user