mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-28 11:01:39 +00:00
add energy costs to wood stuff
This commit is contained in:
parent
c2e2ff426c
commit
8a1f63e8b8
1 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,7 @@ import cursor from "./factory-components/cursor.jpg";
|
||||||
import rotate from "./factory-components/rotate_rectangle.png";
|
import rotate from "./factory-components/rotate_rectangle.png";
|
||||||
import Factory from "./Factory.vue";
|
import Factory from "./Factory.vue";
|
||||||
import "./styles/factory.css";
|
import "./styles/factory.css";
|
||||||
|
import coal from "./coal";
|
||||||
|
|
||||||
const id = "factory";
|
const id = "factory";
|
||||||
|
|
||||||
|
@ -74,7 +75,7 @@ const factory = createLayer(id, () => {
|
||||||
const name = "The Factory";
|
const name = "The Factory";
|
||||||
const color = "grey";
|
const color = "grey";
|
||||||
|
|
||||||
const energy = computed(() => 100);
|
const energy = computed(() => Decimal.add(1, coal.coal.value).log10());
|
||||||
const energyConsumption = computed(() =>
|
const energyConsumption = computed(() =>
|
||||||
Object.values(components.value)
|
Object.values(components.value)
|
||||||
.map(c => FACTORY_COMPONENTS[c.type].energyCost ?? 0)
|
.map(c => FACTORY_COMPONENTS[c.type].energyCost ?? 0)
|
||||||
|
@ -118,6 +119,7 @@ const factory = createLayer(id, () => {
|
||||||
imageSrc: wood,
|
imageSrc: wood,
|
||||||
name: "Wood Machine",
|
name: "Wood Machine",
|
||||||
description: "Produces 1 wood every 1 second.",
|
description: "Produces 1 wood every 1 second.",
|
||||||
|
energyCost: 10,
|
||||||
tick: 1,
|
tick: 1,
|
||||||
outputs: {
|
outputs: {
|
||||||
wood: {
|
wood: {
|
||||||
|
@ -130,6 +132,7 @@ const factory = createLayer(id, () => {
|
||||||
imageSrc: blocks,
|
imageSrc: blocks,
|
||||||
name: "Wooden Block Maker",
|
name: "Wooden Block Maker",
|
||||||
description: "Turns 1 wood into 1 wooden block every second.",
|
description: "Turns 1 wood into 1 wooden block every second.",
|
||||||
|
energyCost: 20,
|
||||||
tick: 1,
|
tick: 1,
|
||||||
inputs: {
|
inputs: {
|
||||||
wood: {
|
wood: {
|
||||||
|
|
Loading…
Reference in a new issue