Skip to content

Commit

Permalink
fixed max unique cost for generics
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecil Bowen committed Oct 17, 2023
1 parent c07ad4d commit a95f8f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/BuildList.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ const BuildList = ({ evilities, removeEvilityFromBuild, passFixedClass, loadBuil
}
}
const uniqueCostSum = evilities.filter(x => x.unique).length;
const maxUniqueCost = 3 + evilities.filter(x => x.fixed && x.fixed === charClass).length;
let maxUniqueCost = 3 + evilities.filter(x => x.fixed && x.fixed === charClass).length;
if (evilities.filter(x => x.fixed).length === 0) {
maxUniqueCost = 4;
}

const errorCost = <Tooltip title={"Cost exceeded!"} placement="right">
<ErrorOutlineIcon sx={{ verticalAlign: 'middle', width: '20px', cursor: 'pointer' }} color="error" />
Expand Down

0 comments on commit a95f8f4

Please sign in to comment.