mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +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;
|
||||
entry = {
|
||||
type: blitzCrewTypeToBlitzkit[crewKey as BlitzCrewType],
|
||||
count: 1,
|
||||
count: 0,
|
||||
substitute: [],
|
||||
};
|
||||
crew.push(entry);
|
||||
|
||||
+1
-3
@@ -454,14 +454,12 @@ export function Characteristics() {
|
||||
</Flex>
|
||||
|
||||
{tank.crew.map((member) => {
|
||||
const count = member.count ?? 1;
|
||||
|
||||
return (
|
||||
<Fragment key={member.type}>
|
||||
<InfoWithDelta
|
||||
key={`${member.type}-root`}
|
||||
name={`${CREW_MEMBER_NAMES[member.type]}${
|
||||
count > 1 ? ` x ${count}` : ''
|
||||
member.count > 1 ? ` x ${member.count}` : ''
|
||||
}`}
|
||||
unit="%"
|
||||
decimals={0}
|
||||
|
||||
Reference in new issue
Block a user