mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-27 04:29:50 +01:00
feat: crew count
This commit is contained in:
1 parent
cd69023dff
commit
98797a6cf5
2 files changed
+5
No files matched your search
+3
@@ -579,6 +579,9 @@ export function Characteristics() {
|
|||||||
<InfoWithDelta name="Health" unit="hp" decimals={0}>
|
<InfoWithDelta name="Health" unit="hp" decimals={0}>
|
||||||
{stats.health}
|
{stats.health}
|
||||||
</InfoWithDelta>
|
</InfoWithDelta>
|
||||||
|
<InfoWithDelta name="Crew count" decimals={0}>
|
||||||
|
{stats.crewCount}
|
||||||
|
</InfoWithDelta>
|
||||||
<InfoWithDelta
|
<InfoWithDelta
|
||||||
name="Fire chance"
|
name="Fire chance"
|
||||||
unit="%"
|
unit="%"
|
||||||
|
|||||||
@@ -504,8 +504,10 @@ export function tankCharacteristics(
|
|||||||
const volume = width * height * length;
|
const volume = width * height * length;
|
||||||
const shellNormalization = shell.normalization ?? 0;
|
const shellNormalization = shell.normalization ?? 0;
|
||||||
const shellRicochet = isExplosive(shell.type) ? undefined : shell.ricochet;
|
const shellRicochet = isExplosive(shell.type) ? undefined : shell.ricochet;
|
||||||
|
const crewCount = tank.crew.length;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
crewCount,
|
||||||
shellNormalization,
|
shellNormalization,
|
||||||
shellRicochet,
|
shellRicochet,
|
||||||
dpm,
|
dpm,
|
||||||
|
|||||||
Reference in new issue
Block a user