feat: crew count

This commit is contained in:
TrèsAbhi committed 2024-10-26 13:43:46 -05:00
1 parent cd69023dff
commit 98797a6cf5
2 files changed
+5

No files matched your search

@@ -579,6 +579,9 @@ export function Characteristics() {
<InfoWithDelta name="Health" unit="hp" decimals={0}>
{stats.health}
</InfoWithDelta>
<InfoWithDelta name="Crew count" decimals={0}>
{stats.crewCount}
</InfoWithDelta>
<InfoWithDelta
name="Fire chance"
unit="%"
@@ -504,8 +504,10 @@ export function tankCharacteristics(
const volume = width * height * length;
const shellNormalization = shell.normalization ?? 0;
const shellRicochet = isExplosive(shell.type) ? undefined : shell.ricochet;
const crewCount = tank.crew.length;
return {
crewCount,
shellNormalization,
shellRicochet,
dpm,