diff --git a/src/data/Day.vue b/src/data/Day.vue
index be67df2..df1288f 100644
--- a/src/data/Day.vue
+++ b/src/data/Day.vue
@@ -19,7 +19,10 @@
Dec
{{ day }}
lock
- {{ formatTime(main.timeUntilNewDay.value, 0) }}
+
+ {{ formatTime(main.timeUntilNewDay.value, 0) }}
+
+ NYI
@@ -36,6 +39,7 @@ import { main } from "./projEntry";
const props = defineProps<{
day: number;
symbol: string;
+ layer: string | null;
opened: Ref;
recentlyUpdated: Ref;
shouldNotify: ProcessedComputable;
@@ -49,6 +53,7 @@ const emit = defineEmits<{
const canOpen = computed(
() =>
+ props.layer &&
Decimal.gte(main.day.value, props.day) &&
new Date().getMonth() === 11 &&
new Date().getDate() >= props.day
diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx
index 20c085b..f8c65f0 100644
--- a/src/data/projEntry.tsx
+++ b/src/data/projEntry.tsx
@@ -99,6 +99,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
return {
day,
symbol,
+ layer,
opened,
recentlyUpdated,
shouldNotify,
@@ -131,14 +132,16 @@ export const main = createLayer("main", function (this: BaseLayer) {
}
},
onUnlockLayer() {
- opened.value = true;
- setTimeout(() => {
- loreScene.value = -1;
- loreTitle.value = unref(layers[layer ?? "trees"]?.name ?? "");
- loreBody.value = story;
- player.devSpeed = null;
- showLoreModal.value = true;
- }, 1000);
+ if (layer) {
+ opened.value = true;
+ setTimeout(() => {
+ loreScene.value = -1;
+ loreTitle.value = unref(layers[layer ?? "trees"]?.name ?? "");
+ loreBody.value = story;
+ player.devSpeed = null;
+ showLoreModal.value = true;
+ }, 1000);
+ }
}
};
}