[ui] DaySentence: Her folded petal, the words and their source; the library bundled after validation

This commit is contained in:
2026-11-02 08:55:06 +01:00
parent 5934523e45
commit 03dc69702a
16 changed files with 525 additions and 19 deletions
+2 -2
View File
@@ -49,8 +49,8 @@
const file = input.files?.[0];
if (!file) return;
try {
const { added } = await wiring.importRose(JSON.parse(await file.text()), currentKey);
said = added === 0 ? en.rose.safe.alreadyHere : en.rose.safe.broughtBack(added);
const { added, petals } = await wiring.importRose(JSON.parse(await file.text()), currentKey);
said = added === 0 && petals === 0 ? en.rose.safe.alreadyHere : en.rose.safe.broughtBack(added);
onrestored();
} catch (error) {
// A wrong file is an ordinary thing to choose; the player is told calmly, the console fully.