mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
fix: pen 0 decimals
This commit is contained in:
1 parent
96d802a09f
commit
a77ff1a638
1 file changed
+43
-33
@@ -345,7 +345,7 @@ export default function Page() {
|
|||||||
<Table.Row>
|
<Table.Row>
|
||||||
<Table.Cell />
|
<Table.Cell />
|
||||||
|
|
||||||
{members.map(({ equipmentMatrix, tank }) => {
|
{members.map(({ equipmentMatrix, tank }, index) => {
|
||||||
const equipmentRows =
|
const equipmentRows =
|
||||||
awaitedEquipmentDefinitions.presets[tank.equipment];
|
awaitedEquipmentDefinitions.presets[tank.equipment];
|
||||||
|
|
||||||
@@ -430,21 +430,26 @@ export default function Page() {
|
|||||||
] === -1
|
] === -1
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// mutateDuel((draft) => {
|
mutateCompareTemporary((draft) => {
|
||||||
// if (
|
if (
|
||||||
// equipmentMatrix[rowIndex][
|
draft.members[index]
|
||||||
// columnIndex
|
.equipmentMatrix[rowIndex][
|
||||||
// ] === -1
|
columnIndex
|
||||||
// ) {
|
] === -1
|
||||||
// draft.protagonist!.equipmentMatrix[
|
) {
|
||||||
// rowIndex
|
draft.members[
|
||||||
// ][columnIndex] = 0;
|
index
|
||||||
// } else {
|
].equipmentMatrix[rowIndex][
|
||||||
// draft.protagonist!.equipmentMatrix[
|
columnIndex
|
||||||
// rowIndex
|
] = 0;
|
||||||
// ][columnIndex] = -1;
|
} else {
|
||||||
// }
|
draft.members[
|
||||||
// });
|
index
|
||||||
|
].equipmentMatrix[rowIndex][
|
||||||
|
columnIndex
|
||||||
|
] = -1;
|
||||||
|
}
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<EquipmentButton
|
<EquipmentButton
|
||||||
@@ -457,21 +462,26 @@ export default function Page() {
|
|||||||
] === 1
|
] === 1
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// mutateDuel((draft) => {
|
mutateCompareTemporary((draft) => {
|
||||||
// if (
|
if (
|
||||||
// equipmentMatrix[rowIndex][
|
draft.members[index]
|
||||||
// columnIndex
|
.equipmentMatrix[rowIndex][
|
||||||
// ] === 1
|
columnIndex
|
||||||
// ) {
|
] === 1
|
||||||
// draft.protagonist!.equipmentMatrix[
|
) {
|
||||||
// rowIndex
|
draft.members[
|
||||||
// ][columnIndex] = 0;
|
index
|
||||||
// } else {
|
].equipmentMatrix[rowIndex][
|
||||||
// draft.protagonist!.equipmentMatrix[
|
columnIndex
|
||||||
// rowIndex
|
] = 0;
|
||||||
// ][columnIndex] = 1;
|
} else {
|
||||||
// }
|
draft.members[
|
||||||
// });
|
index
|
||||||
|
].equipmentMatrix[rowIndex][
|
||||||
|
columnIndex
|
||||||
|
] = 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
@@ -516,8 +526,8 @@ export default function Page() {
|
|||||||
decimals={2}
|
decimals={2}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Row name="Caliber" value="caliber" />
|
<Row name="Caliber" value="caliber" decimals={0} />
|
||||||
<Row name="Penetration" value="penetration" />
|
<Row name="Penetration" value="penetration" decimals={0} />
|
||||||
<Row name="Damage" value="damage" />
|
<Row name="Damage" value="damage" />
|
||||||
<Row name="Module damage" value="moduleDamage" />
|
<Row name="Module damage" value="moduleDamage" />
|
||||||
<Row name="Shell velocity" value="shellVelocity" />
|
<Row name="Shell velocity" value="shellVelocity" />
|
||||||
|
|||||||
Reference in new issue
Block a user