mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-21 14:37:22 +01:00
Fix hiding with talent in calculator
This commit is contained in:
parent
cd549f3687
commit
52bd084883
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue