Fixed days being displayed as complete too early

This commit is contained in:
Chunkybanana 2022-12-04 10:07:06 +00:00
parent e176c1ae0d
commit df29a309ee

View file

@ -70,7 +70,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
opened,
shouldNotify,
onOpenLore() {
const completed = main.day.value > day - 1;
const completed = main.day.value > day;
loreScene.value = completed ? day - 1 : -1;
const title = unref(layers[layer ?? "trees"]?.name ?? "");
loreTitle.value = completed ? `${title} - Completed!` : title;