mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 17:31:54 +00:00
the box upgrade descriptions
This commit is contained in:
parent
5e6fb25e86
commit
5d0a2fa6fb
1 changed files with 31 additions and 3 deletions
|
@ -22,7 +22,7 @@ import paper from "./paper";
|
|||
import plastic from "./plastic";
|
||||
import trees from "./trees";
|
||||
import dyes from "./dyes";
|
||||
|
||||
import management from "./management";
|
||||
const id = "boxes";
|
||||
const day = 6;
|
||||
const layer = createLayer(id, function (this: BaseLayer) {
|
||||
|
@ -132,7 +132,34 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
}
|
||||
}));
|
||||
const row2Upgrades = { oreUpgrade, metalUpgrade, plasticUpgrade };
|
||||
|
||||
const clothUpgrade = createUpgrade(() => ({
|
||||
resource: noPersist(boxes),
|
||||
cost: 1e16,
|
||||
visibility: () => showIf(management.elfTraining.boxElfTraining.milestones[4].earned.value),
|
||||
display: {
|
||||
title: "Carry cloth in boxes",
|
||||
description: "Double all cloth actions"
|
||||
}
|
||||
}));
|
||||
const dyeUpgrade = createUpgrade(() => ({
|
||||
resource: noPersist(boxes),
|
||||
cost: 1e17,
|
||||
visibility: () => showIf(management.elfTraining.boxElfTraining.milestones[4].earned.value),
|
||||
display: {
|
||||
title: "Carry dye in boxes",
|
||||
description: "Double all dye gain"
|
||||
}
|
||||
}));
|
||||
const xpUpgrade = createUpgrade(() => ({
|
||||
resource: noPersist(boxes),
|
||||
cost: 1e18,
|
||||
visibility: () => showIf(management.elfTraining.boxElfTraining.milestones[4].earned.value),
|
||||
display: {
|
||||
title: "Carry experience in boxes???",
|
||||
description: "Double xp gain"
|
||||
}
|
||||
}));
|
||||
const row3Upgrades = { clothUpgrade, dyeUpgrade, xpUpgrade };
|
||||
const logBoxesBuyable = createBuyable(() => ({
|
||||
display: {
|
||||
title: "Carry more logs",
|
||||
|
@ -211,6 +238,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
boxesConversion,
|
||||
upgrades,
|
||||
row2Upgrades,
|
||||
row3Upgrades,
|
||||
buyables,
|
||||
minWidth: 700,
|
||||
display: jsx(() => (
|
||||
|
@ -221,7 +249,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
<Spacer />
|
||||
{render(makeBoxes)}
|
||||
<Spacer />
|
||||
{renderGrid(Object.values(upgrades), Object.values(row2Upgrades))}
|
||||
{renderGrid(Object.values(upgrades), Object.values(row2Upgrades), Object.values(row3Upgrades))}
|
||||
<Spacer />
|
||||
{renderRow(...Object.values(buyables))}
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue