mirror of
https://github.com/seigler/bl3skills.com
synced 2025-07-27 01:36:12 +00:00
Fix level calculation
This commit is contained in:
parent
0bdfbd4cdd
commit
62c73b5885
3 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ export default class VaultHunter extends Component {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const level = getLevel(this.state) + 2;
|
const level = getLevel(this.state);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -19,6 +19,6 @@ export default function investmentValidator (skills) {
|
||||||
totalSpent += treeTotal;
|
totalSpent += treeTotal;
|
||||||
treeIndex += 1;
|
treeIndex += 1;
|
||||||
};
|
};
|
||||||
if (totalSpent > (50 - 2) + 11 + 11) { return false; }
|
if (totalSpent > (50 - 3) + 11 + 11) { return false; }
|
||||||
return treeTotals;
|
return treeTotals;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
export function getLevel (state) {
|
export function getLevel (state) {
|
||||||
return state.invested.reduce((total, current) => total + current, 0);
|
return state.invested.reduce((total, current) => total + current, 3);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue