(false);
+ return createLazyProxy(() => {
+ const day = optionsFunc();
+
+ return {
+ ...day,
+ opened,
+ tooltipText: day.layer ?? day.symbol,
+ shouldNotify: ref(false),
+ [Component]: Day,
+ [GatherProps]: function(this: Day) {
+ const { day, symbol, opened, tooltipText, shouldNotify } = this;
+ return { day, symbol, opened, tooltipText, shouldNotify };
+ }
+ };
+ })
+ }
+
+ const days = [
+ createDay(() => ({
+ day: 1,
+ layer: null,
+ symbol: "🎄",
+ story: "Oh no! Santa forgot about Christmas and it's only 25 days away! He's asked for your help due to your history getting large quantities of things in short amounts of time. Unfortunately you're really starting from scratch here - let's start with getting wood, which you'll need for everything from building workshops to wrapping paper to many of the toys themselves"
+ })),
+ createDay(() => ({
+ day: 2,
+ layer: null,
+ symbol: "cabin",
+ story: "Santa looked over your tree farm and was impressed with how much you could accomplish in just one day. Today's goal is to get a workshop built up for the elves to work in - and apparently, they need quite a lot of space to work!"
+ })),
+ createDay(() => ({
+ day: 3,
+ layer: null,
+ symbol: "🧝",
+ story: "With this unbelievably large workshop complete, it's time to get the elves to work! But it appears they've forgotten how to make toys over the last 11 months - guess it's time to setup training sessions!"
+ }))
+ ];
return {
- name: "Tree",
- links: tree.links,
+ name: "Calendar",
+ days,
+ day,
display: jsx(() => (
<>
{player.devSpeed === 0 ? Game Paused
: null}
@@ -55,21 +88,18 @@ export const main = createLayer("main", function (this: BaseLayer) {
{player.offlineTime ? (
Offline Time: {formatTime(player.offlineTime)}
) : null}
-
- {Decimal.lt(points.value, "1e1000") ? You have : null}
-
{format(points.value)}
- {Decimal.lt(points.value, "1e1e6") ? points : null}
-
- {Decimal.gt(pointGain.value, 0) ? ({oomps.value})
: null}
- {render(tree)}
+
+ {days.reduce((acc, curr) => {
+ if (acc[acc.length - 1].length === 5) {
+ acc.push([]);
+ }
+ acc[acc.length - 1].push(curr);
+ return acc;
+ }, [[]] as Day[][]).map(days => renderRow(...days))}
+
>
- )),
- points,
- best,
- total,
- oomps,
- tree
+ ))
};
});
@@ -99,5 +129,5 @@ export function fixOldSave(
oldVersion: string | undefined,
player: Partial
// eslint-disable-next-line @typescript-eslint/no-empty-function
-): void {}
+): void { }
/* eslint-enable @typescript-eslint/no-unused-vars */
diff --git a/src/data/projInfo.json b/src/data/projInfo.json
index b32ef22..8c94b84 100644
--- a/src/data/projInfo.json
+++ b/src/data/projInfo.json
@@ -1,10 +1,10 @@
{
"$schema": "./projInfo-schema.json",
- "title": "Profectus",
- "description": "A project made in Profectus",
- "id": "",
- "author": "",
+ "title": "Advent Incremental",
+ "description": "An incremental game you play a day at a time, leading up to Christmas!",
+ "id": "advent-incremental",
+ "author": "thepaperpilot",
"discordName": "",
"discordLink": "",