Fix level calculation

This commit is contained in:
Joshua Seigler 2019-05-07 09:17:42 -04:00
parent 0bdfbd4cdd
commit 62c73b5885
3 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ export default class VaultHunter extends Component {
);
});
const level = getLevel(this.state) + 2;
const level = getLevel(this.state);
return (
<div>

View file

@ -19,6 +19,6 @@ export default function investmentValidator (skills) {
totalSpent += treeTotal;
treeIndex += 1;
};
if (totalSpent > (50 - 2) + 11 + 11) { return false; }
if (totalSpent > (50 - 3) + 11 + 11) { return false; }
return treeTotals;
}

View file

@ -1,3 +1,3 @@
export function getLevel (state) {
return state.invested.reduce((total, current) => total + current, 0);
return state.invested.reduce((total, current) => total + current, 3);
};