mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: 1 extra crew members
This commit is contained in:
1 parent
28de3a0283
commit
670debbe26
2 files changed
+2
-4
No files matched your search
@@ -814,7 +814,7 @@ export async function definitions() {
|
|||||||
if (crewKey === '#text') return;
|
if (crewKey === '#text') return;
|
||||||
entry = {
|
entry = {
|
||||||
type: blitzCrewTypeToBlitzkit[crewKey as BlitzCrewType],
|
type: blitzCrewTypeToBlitzkit[crewKey as BlitzCrewType],
|
||||||
count: 1,
|
count: 0,
|
||||||
substitute: [],
|
substitute: [],
|
||||||
};
|
};
|
||||||
crew.push(entry);
|
crew.push(entry);
|
||||||
|
|||||||
+1
-3
@@ -454,14 +454,12 @@ export function Characteristics() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{tank.crew.map((member) => {
|
{tank.crew.map((member) => {
|
||||||
const count = member.count ?? 1;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment key={member.type}>
|
<Fragment key={member.type}>
|
||||||
<InfoWithDelta
|
<InfoWithDelta
|
||||||
key={`${member.type}-root`}
|
key={`${member.type}-root`}
|
||||||
name={`${CREW_MEMBER_NAMES[member.type]}${
|
name={`${CREW_MEMBER_NAMES[member.type]}${
|
||||||
count > 1 ? ` x ${count}` : ''
|
member.count > 1 ? ` x ${member.count}` : ''
|
||||||
}`}
|
}`}
|
||||||
unit="%"
|
unit="%"
|
||||||
decimals={0}
|
decimals={0}
|
||||||
|
|||||||
Reference in new issue
Block a user