mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: more robust xp
This commit is contained in:
1 parent
c2abc94241
commit
09848c7b21
1 file changed
+8
-1
@@ -64,7 +64,12 @@ export function TechTreeSection() {
|
|||||||
[master, lineIndex],
|
[master, lineIndex],
|
||||||
);
|
);
|
||||||
const totalXp = line.reduce(
|
const totalXp = line.reduce(
|
||||||
(xp, id) => xp + (awaitedTankDefinitions[id].xp ?? 0),
|
(xp, id) =>
|
||||||
|
xp +
|
||||||
|
(awaitedTankDefinitions[id].xp === undefined ||
|
||||||
|
awaitedTankDefinitions[id].tier === 1
|
||||||
|
? 0
|
||||||
|
: awaitedTankDefinitions[id].xp),
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
const totalCredits = line.reduce(
|
const totalCredits = line.reduce(
|
||||||
@@ -100,6 +105,7 @@ export function TechTreeSection() {
|
|||||||
<Flex direction="column" align="center">
|
<Flex direction="column" align="center">
|
||||||
<Heading size="6">Tech tree</Heading>
|
<Heading size="6">Tech tree</Heading>
|
||||||
|
|
||||||
|
{master.tier > 1 && (
|
||||||
<Flex gap="4" align="center">
|
<Flex gap="4" align="center">
|
||||||
<Text color="gray" wrap="nowrap">
|
<Text color="gray" wrap="nowrap">
|
||||||
<Flex gap="1" align="center">
|
<Flex gap="1" align="center">
|
||||||
@@ -133,6 +139,7 @@ export function TechTreeSection() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<ScrollArea type="hover" scrollbars="horizontal" ref={container}>
|
<ScrollArea type="hover" scrollbars="horizontal" ref={container}>
|
||||||
|
|||||||
Reference in new issue
Block a user