mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-17 18:02:45 +00:00
remove all the square stuff
This commit is contained in:
parent
98afdc7301
commit
91ee0cd17d
2 changed files with 19 additions and 32 deletions
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
|
@ -14,7 +14,6 @@ import { computed, ComputedRef, reactive, ref, watchEffect } from "vue";
|
||||||
import conveyor from "./factory-components/conveyor.png";
|
import conveyor from "./factory-components/conveyor.png";
|
||||||
import cursor from "./factory-components/cursor.jpg";
|
import cursor from "./factory-components/cursor.jpg";
|
||||||
import rotate from "./factory-components/rotate_rectangle.png";
|
import rotate from "./factory-components/rotate_rectangle.png";
|
||||||
import square from "./factory-components/square.jpg";
|
|
||||||
import Factory from "./Factory.vue";
|
import Factory from "./Factory.vue";
|
||||||
import "./styles/factory.css";
|
import "./styles/factory.css";
|
||||||
|
|
||||||
|
@ -65,8 +64,8 @@ function getDirection(dir: Direction) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const factorySize = {
|
const factorySize = {
|
||||||
width: 3,
|
width: 6,
|
||||||
height: 3
|
height: 6
|
||||||
};
|
};
|
||||||
const blockSize = 50;
|
const blockSize = 50;
|
||||||
|
|
||||||
|
@ -104,53 +103,41 @@ const factory = createLayer(id, () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
square: {
|
wood: {
|
||||||
imageSrc: square,
|
imageSrc: wood,
|
||||||
name: "Producer",
|
name: "Wood Machine",
|
||||||
description: "Produces 1 square every 1 second.",
|
description: "Produces 1 wood every 1 second.",
|
||||||
tick: 1,
|
tick: 1,
|
||||||
outputs: {
|
outputs: {
|
||||||
square: {
|
wood: {
|
||||||
amount: 1
|
amount: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
receiver: {
|
|
||||||
imageSrc: square,
|
blocks: {
|
||||||
name: "Receiver",
|
imageSrc: blocks,
|
||||||
description: "Obtains squares. Pretty much does nothing else.",
|
name: "Wooden Block Maker",
|
||||||
tick: 0,
|
description: "Turns 1 wood into 1 wooden block every second.",
|
||||||
inputs: {
|
|
||||||
square: {
|
|
||||||
amount: Infinity
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
shrinker: {
|
|
||||||
imageSrc: square,
|
|
||||||
name: "Shrinker",
|
|
||||||
description:
|
|
||||||
"Converts 100 squares to 1 square. I don't know why you would want to do this but here you go anyways.",
|
|
||||||
tick: 1,
|
tick: 1,
|
||||||
inputs: {
|
inputs: {
|
||||||
square: {
|
wood: {
|
||||||
amount: 100,
|
amount: 1
|
||||||
capacity: 10000
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
outputs: {
|
outputs: {
|
||||||
square: {
|
block: {
|
||||||
amount: 1,
|
amount: 1
|
||||||
capacity: 10
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Record<FactoryCompNames, FactoryComponentDeclaration>;
|
} as Record<FactoryCompNames, FactoryComponentDeclaration>;
|
||||||
const RESOURCES = {
|
const RESOURCES = {
|
||||||
square: square
|
wood: wood,
|
||||||
|
block: block
|
||||||
} as Record<string, string>;
|
} as Record<string, string>;
|
||||||
|
|
||||||
type FactoryCompNames = "cursor" | "rotate" | "conveyor" | "square" | "receiver" | "shrinker";
|
type FactoryCompNames = "cursor" | "rotate" | "conveyor" | "wood" | "blocks";
|
||||||
type BuildableCompName = Exclude<FactoryCompNames, "cursor">;
|
type BuildableCompName = Exclude<FactoryCompNames, "cursor">;
|
||||||
|
|
||||||
interface FactoryComponentBase extends Record<string, State> {
|
interface FactoryComponentBase extends Record<string, State> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue