mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-16 09:31:43 +00:00
Made wheels description dynamic
This commit is contained in:
parent
da61af6cdc
commit
c21a72abe4
1 changed files with 11 additions and 5 deletions
|
@ -375,7 +375,13 @@ const factory = createLayer(id, () => {
|
||||||
key: "shift+3",
|
key: "shift+3",
|
||||||
name: "Wheel Crafter",
|
name: "Wheel Crafter",
|
||||||
type: "processor",
|
type: "processor",
|
||||||
description: "Turns 1 plastic into 1 wheel every second.",
|
// TODO construct descriptions dynamically better
|
||||||
|
description: computed(
|
||||||
|
() =>
|
||||||
|
`Turns 1 plastic into ${
|
||||||
|
toys.milestones.milestone5.earned.value ? "2 wheels" : "1 wheel"
|
||||||
|
} every second.`
|
||||||
|
),
|
||||||
energyCost: 2,
|
energyCost: 2,
|
||||||
tick: 1,
|
tick: 1,
|
||||||
inputs: {
|
inputs: {
|
||||||
|
@ -422,7 +428,7 @@ const factory = createLayer(id, () => {
|
||||||
amount: 2
|
amount: 2
|
||||||
},
|
},
|
||||||
cloth: {
|
cloth: {
|
||||||
amount: 3,
|
amount: 3
|
||||||
},
|
},
|
||||||
dye: {
|
dye: {
|
||||||
amount: 1
|
amount: 1
|
||||||
|
@ -562,7 +568,7 @@ const factory = createLayer(id, () => {
|
||||||
imageSrc: string;
|
imageSrc: string;
|
||||||
name: string;
|
name: string;
|
||||||
type: "command" | "conveyor" | "processor";
|
type: "command" | "conveyor" | "processor";
|
||||||
description: string;
|
description: ProcessedComputable<string>;
|
||||||
energyCost?: number;
|
energyCost?: number;
|
||||||
|
|
||||||
/** amount it consumes */
|
/** amount it consumes */
|
||||||
|
@ -1246,7 +1252,7 @@ const factory = createLayer(id, () => {
|
||||||
<HotkeyVue hotkey={hotkeys[whatIsHovered.value]} />
|
<HotkeyVue hotkey={hotkeys[whatIsHovered.value]} />
|
||||||
</h3>
|
</h3>
|
||||||
<br />
|
<br />
|
||||||
{FACTORY_COMPONENTS[whatIsHovered.value].description}
|
{unref(FACTORY_COMPONENTS[whatIsHovered.value].description)}
|
||||||
{FACTORY_COMPONENTS[whatIsHovered.value].energyCost ?? 0 ? (
|
{FACTORY_COMPONENTS[whatIsHovered.value].energyCost ?? 0 ? (
|
||||||
<>
|
<>
|
||||||
<br />
|
<br />
|
||||||
|
@ -1329,7 +1335,7 @@ const factory = createLayer(id, () => {
|
||||||
>
|
>
|
||||||
<h3>{FACTORY_COMPONENTS[compHovered.value.type].name}</h3>
|
<h3>{FACTORY_COMPONENTS[compHovered.value.type].name}</h3>
|
||||||
<br />
|
<br />
|
||||||
{FACTORY_COMPONENTS[compHovered.value.type].description}
|
{unref(FACTORY_COMPONENTS[compHovered.value.type].description)}
|
||||||
<br />
|
<br />
|
||||||
{compHovered.value.type !== "conveyor" ? (
|
{compHovered.value.type !== "conveyor" ? (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Add table
Reference in a new issue