mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +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
@@ -206,7 +206,7 @@ export function Characteristics() {
|
|||||||
)}
|
)}
|
||||||
{gun.type === 'autoReloader' ? (
|
{gun.type === 'autoReloader' ? (
|
||||||
<>
|
<>
|
||||||
<Info indent name="Most optimal">
|
<Info indent name="Most optimal shell index">
|
||||||
{stats.mostOptimalShellIndex}
|
{stats.mostOptimalShellIndex}
|
||||||
</Info>
|
</Info>
|
||||||
<Info name="Shell reloads" unit="s" />
|
<Info name="Shell reloads" unit="s" />
|
||||||
|
|||||||
@@ -343,11 +343,12 @@ export function tankCharacteristics(
|
|||||||
damageCoefficient * shell.damage.armor * gun.reload.slice(1).length
|
damageCoefficient * shell.damage.armor * gun.reload.slice(1).length
|
||||||
: undefined;
|
: undefined;
|
||||||
const shells = gun.type === 'regular' ? 1 : gun.count;
|
const shells = gun.type === 'regular' ? 1 : gun.count;
|
||||||
|
console.log(gun.reload);
|
||||||
const mostOptimalShellIndex =
|
const mostOptimalShellIndex =
|
||||||
gun.type === 'autoReloader'
|
gun.type === 'autoReloader'
|
||||||
? gun.reload.at(-1)! < gun.reload.at(-2)!
|
? gun.reload[0] + gun.intraClip < gun.reload[1]
|
||||||
? gun.reload.length
|
? 1
|
||||||
: 1
|
: gun.reload.length
|
||||||
: undefined;
|
: undefined;
|
||||||
const shellReloads =
|
const shellReloads =
|
||||||
gun.type === 'autoReloader'
|
gun.type === 'autoReloader'
|
||||||
|
|||||||
Reference in new issue
Block a user