Fix hiding with talent in calculator

This commit is contained in:
I Made Setia Baruna 2021-01-09 02:34:15 +08:00
parent cd549f3687
commit 52bd084883

View file

@ -84,6 +84,7 @@
$: currentLevel, updateMinAscension();
$: intendedLevel, updateMinIntendedAscension();
$: intendedAscension, updateMaxTalentLevel();
$: withAscension, checkWithTalent();
$: canCalculate =
(withAscension ? selectedCharacter !== null : true) &&
@ -96,6 +97,12 @@
intendedLevel > 0 &&
intendedLevel <= 90;
function checkWithTalent() {
if (!withAscension) {
withTalent = false;
}
}
function updateIntendedAscension() {
intendedAscension = Math.max(currentAscension, intendedAscension);
}