mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +00:00
stuff
This commit is contained in:
parent
8d193b54ff
commit
c2125e3c45
1 changed files with 12 additions and 2 deletions
|
@ -223,6 +223,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
showLoreModal.value = true;
|
showLoreModal.value = true;
|
||||||
},
|
},
|
||||||
onOpenLayer() {
|
onOpenLayer() {
|
||||||
|
if (day == 25) return;
|
||||||
recentlyUpdated.value = false;
|
recentlyUpdated.value = false;
|
||||||
// 1468 is because two tabs with minWidth of 700px plus the minimized calendar of 60px plus 2 dividers of 4px each
|
// 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) {
|
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;
|
layers[layer ?? "trees"]!.minimized.value = false;
|
||||||
},
|
},
|
||||||
onUnlockLayer() {
|
onUnlockLayer() {
|
||||||
if (layer != null) {
|
if (layer != null || day == 25) {
|
||||||
opened.value = true;
|
opened.value = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loreScene.value = -1;
|
loreScene.value = -1;
|
||||||
loreTitle.value = unref(layers[layer ?? "trees"]?.name ?? "");
|
loreTitle.value = day == 25 ? "The End!" : unref(layers[layer ?? "trees"]?.name ?? "");
|
||||||
loreBody.value = story;
|
loreBody.value = story;
|
||||||
if (player.autoPause) player.devSpeed = null;
|
if (player.autoPause) player.devSpeed = null;
|
||||||
showLoreModal.value = true;
|
showLoreModal.value = true;
|
||||||
|
@ -505,6 +506,15 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
story: "",
|
story: "",
|
||||||
completedStory: "",
|
completedStory: "",
|
||||||
masteredStory: ""
|
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: ""
|
||||||
}))
|
}))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue