fix: casing

This commit is contained in:
TrèsAbhi committed 2024-10-07 18:45:11 -05:00
1 parent ef52434a42
commit fc8e0e55f0
34 files changed
+321 -304

No files matched your search

@@ -22,15 +22,17 @@ export function Node({ id, highlight, nextIds }: NodeProps) {
const tank = tankDefinitions.tanks[id];
const nextTanks = nextIds?.map((id) => tankDefinitions.tanks[id]);
const thisTankXp =
tank.researchCost === undefined || tank.tier === 1
tank.research_cost === undefined || tank.tier === 1
? 0
: (tank.researchCost.researchCostType!.value as number)! / xpMultiplier;
: (tank.research_cost.research_cost_type!.value as number)! /
xpMultiplier;
const nextTanksXp = nextTanks?.reduce(
(xp, tank) =>
xp +
(tank.researchCost === undefined || tank.tier === 1
(tank.research_cost === undefined || tank.tier === 1
? 0
: (tank.researchCost.researchCostType!.value as number) / xpMultiplier),
: (tank.research_cost.research_cost_type!.value as number) /
xpMultiplier),
0,
);
const averages = averageDefinitions.averages[tank.id]?.mu;
@@ -53,10 +53,10 @@ export function TechTreeSection() {
const totalXp = line.reduce(
(xp, id) =>
xp +
(tankDefinitions.tanks[id].researchCost === undefined ||
(tankDefinitions.tanks[id].research_cost === undefined ||
tankDefinitions.tanks[id].tier === 1
? 0
: (tankDefinitions.tanks[id].researchCost.researchCostType!
: (tankDefinitions.tanks[id].research_cost.research_cost_type!
.value as number)),
0,
);