From c2125e3c45a054740f01e11e2e3c3eb8be36b8c7 Mon Sep 17 00:00:00 2001 From: Chunkybanana <62921243+chunkybanana@users.noreply.github.com> Date: Fri, 23 Dec 2022 10:15:41 +0000 Subject: [PATCH] stuff --- src/data/projEntry.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 349bac1..534f059 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -223,6 +223,7 @@ export const main = createLayer("main", function (this: BaseLayer) { showLoreModal.value = true; }, onOpenLayer() { + if (day == 25) return; recentlyUpdated.value = false; // 1468 is because two tabs with minWidth of 700px plus the minimized calendar of 60px plus 2 dividers of 4px each if (window.matchMedia("(min-width: 1468px)").matches) { @@ -241,11 +242,11 @@ export const main = createLayer("main", function (this: BaseLayer) { layers[layer ?? "trees"]!.minimized.value = false; }, onUnlockLayer() { - if (layer != null) { + if (layer != null || day == 25) { opened.value = true; setTimeout(() => { loreScene.value = -1; - loreTitle.value = unref(layers[layer ?? "trees"]?.name ?? ""); + loreTitle.value = day == 25 ? "The End!" : unref(layers[layer ?? "trees"]?.name ?? ""); loreBody.value = story; if (player.autoPause) player.devSpeed = null; showLoreModal.value = true; @@ -505,6 +506,15 @@ export const main = createLayer("main", function (this: BaseLayer) { story: "", completedStory: "", masteredStory: "" + })), + createDay(() => ({ + day: 25, + shouldNotify: false, + layer: null, // credits + symbol: "", + story: "It's Christmas. Thanks to your efforts, Santa has delivered all the presents to people all over the world. That is, all but one...", + completedStory: "", + masteredStory: "" })) ];