mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-03-13 11:18:28 +01:00
Fix bug editing manual constellation count
This commit is contained in:
parent
d41e44ca67
commit
df32b94186
1 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@
|
|||
}
|
||||
|
||||
function editConstellationCount(val) {
|
||||
manualCount = Math.max(manualCount + val);
|
||||
manualCount = Math.max(-constellationCount - 1, manualCount + val);
|
||||
}
|
||||
|
||||
async function saveConstellationCount() {
|
||||
|
@ -138,7 +138,7 @@
|
|||
};
|
||||
}
|
||||
|
||||
if (chars[id].default + chars[id].wish + chars[id].manual === 0) {
|
||||
if (chars[id].default + chars[id].wish === 0 && chars[id].manual === 0) {
|
||||
delete chars[id];
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@
|
|||
await getConstellationCount();
|
||||
});
|
||||
|
||||
$: constellationCountTotal = Math.max(0, constellationCount + manualCount);
|
||||
$: constellationCountTotal = constellationCount + manualCount;
|
||||
$: buildName = builds[currentBuild].name;
|
||||
$: build = builds[currentBuild].build;
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue