mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-26 02:01:43 +00:00
factory start
This commit is contained in:
parent
0e9d09fc6a
commit
8a56b41a3f
2 changed files with 22 additions and 2 deletions
18
src/data/layers/factory.tsx
Normal file
18
src/data/layers/factory.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { jsx } from "features/feature";
|
||||
import { createLayer } from "game/layers";
|
||||
|
||||
const id = "elves";
|
||||
|
||||
// what is the actual day?
|
||||
const day = 20;
|
||||
const factory = createLayer(id, () => {
|
||||
const name = "The Factory";
|
||||
const color = "grey";
|
||||
return {
|
||||
name,
|
||||
day,
|
||||
color,
|
||||
display: jsx(() => <>testing testing 1 2 3</>)
|
||||
};
|
||||
})
|
||||
export default factory;
|
|
@ -30,6 +30,7 @@ import paper from "./layers/paper";
|
|||
import plastic from "./layers/plastic";
|
||||
import trees from "./layers/trees";
|
||||
import workshop from "./layers/workshop";
|
||||
import factory from "./layers/factory"
|
||||
import wrappingPaper from "./layers/wrapping-paper";
|
||||
import boxesSymbol from "./symbols/cardboardBox.png";
|
||||
import clothSymbol from "./symbols/cloth.png";
|
||||
|
@ -331,7 +332,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
createDay(() => ({
|
||||
day: 20,
|
||||
shouldNotify: false,
|
||||
layer: null, // "presents"
|
||||
layer: "factory", // "presents"
|
||||
symbol: "",
|
||||
story: "",
|
||||
completedStory: ""
|
||||
|
@ -441,7 +442,8 @@ export const getInitialLayers = (
|
|||
plastic,
|
||||
dyes,
|
||||
wrappingPaper,
|
||||
management
|
||||
management,
|
||||
factory
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue