mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +00:00
Make ribbon costs highlight unmet conditions
This commit is contained in:
parent
b0b617791b
commit
df63826fed
1 changed files with 14 additions and 2 deletions
|
@ -60,8 +60,20 @@ const layer = createLayer(id, () => {
|
||||||
title: "Make Ribbon",
|
title: "Make Ribbon",
|
||||||
description: jsx(() => (
|
description: jsx(() => (
|
||||||
<>
|
<>
|
||||||
Create another ribbon with {format(currentDyeCost.value)}{" "}
|
Create another ribbon with{" "}
|
||||||
{currentDyeType.value.name} and {format(1e9)} {cloth.cloth.displayName}
|
<span
|
||||||
|
class={
|
||||||
|
Decimal.lt(currentDyeType.value.value, currentDyeCost.value)
|
||||||
|
? "unaffordable"
|
||||||
|
: ""
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{format(currentDyeCost.value)} {currentDyeType.value.name}
|
||||||
|
</span>{" "}
|
||||||
|
and{" "}
|
||||||
|
<span class={Decimal.lt(cloth.cloth.value, 1e9) ? "unaffordable" : ""}>
|
||||||
|
{format(1e9)} {cloth.cloth.displayName}
|
||||||
|
</span>
|
||||||
<br />
|
<br />
|
||||||
{render(ribbonProgressBar)}
|
{render(ribbonProgressBar)}
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in a new issue