Add delay before showing lore

This commit is contained in:
thepaperpilot 2022-12-01 00:07:52 -06:00
parent 453085284f
commit 3825732e2e

View file

@ -72,8 +72,10 @@ export const main = createLayer("main", function (this: BaseLayer) {
},
onUnlockLayer() {
opened.value = true;
loreTitle.value = unref(layers[layer ?? "trees"]?.name ?? "");
loreBody.value = story;
setTimeout(() => {
loreTitle.value = unref(layers[layer ?? "trees"]?.name ?? "");
loreBody.value = story;
}, 1000);
}
};
}