mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
make upgrades 2d
This commit is contained in:
parent
b2f888b92a
commit
87dc21d389
1 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ import { noPersist, Persistent, persistent, State } from "game/persistence";
|
||||||
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
import Decimal, { DecimalSource, format, formatWhole } from "util/bignum";
|
||||||
import { Direction } from "util/common";
|
import { Direction } from "util/common";
|
||||||
import { ProcessedComputable } from "util/computed";
|
import { ProcessedComputable } from "util/computed";
|
||||||
import { render, renderRow } from "util/vue";
|
import { render, renderGrid, renderRow } from "util/vue";
|
||||||
import { computed, ComputedRef, reactive, ref, unref, watchEffect } from "vue";
|
import { computed, ComputedRef, reactive, ref, unref, watchEffect } from "vue";
|
||||||
import _cloth from "../symbols/cloth.png";
|
import _cloth from "../symbols/cloth.png";
|
||||||
import _dye from "../symbols/dyes.png";
|
import _dye from "../symbols/dyes.png";
|
||||||
|
@ -1038,7 +1038,7 @@ const factory = createLayer(id, () => {
|
||||||
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
visible: () => showIf(main.days[advancedDay - 1].opened.value)
|
||||||
})) as GenericBuyable;
|
})) as GenericBuyable;
|
||||||
const factoryBuyables = { expandFactory, oilFuel, carryToys };
|
const factoryBuyables = { expandFactory, oilFuel, carryToys };
|
||||||
const upgrades = [createUpgrade(() => ({
|
const upgrades = [[createUpgrade(() => ({
|
||||||
resource: trees.logs,
|
resource: trees.logs,
|
||||||
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e80),
|
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e80),
|
||||||
display: {
|
display: {
|
||||||
|
@ -1069,8 +1069,8 @@ const factory = createLayer(id, () => {
|
||||||
title: "Diamond-tipped drills",
|
title: "Diamond-tipped drills",
|
||||||
description: "Drill power ^1.2"
|
description: "Drill power ^1.2"
|
||||||
}
|
}
|
||||||
})),
|
}))],
|
||||||
createUpgrade(() => ({
|
[createUpgrade(() => ({
|
||||||
resource: toys.woodenBlocks,
|
resource: toys.woodenBlocks,
|
||||||
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1000),
|
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1000),
|
||||||
display: {
|
display: {
|
||||||
|
@ -1093,7 +1093,7 @@ const factory = createLayer(id, () => {
|
||||||
title: "Improved plastic producers",
|
title: "Improved plastic producers",
|
||||||
description: "Plastic producers produce 4x as much"
|
description: "Plastic producers produce 4x as much"
|
||||||
}
|
}
|
||||||
})),
|
}))],
|
||||||
]
|
]
|
||||||
|
|
||||||
// pixi
|
// pixi
|
||||||
|
@ -1856,7 +1856,7 @@ const factory = createLayer(id, () => {
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{renderRow(...Object.values(factoryBuyables))}
|
{renderRow(...Object.values(factoryBuyables))}
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{renderRow(...Object.values(upgrades))}
|
{renderGrid(upgrades as VueFeature[])}
|
||||||
</>
|
</>
|
||||||
))
|
))
|
||||||
})),
|
})),
|
||||||
|
|
Loading…
Reference in a new issue