1
0
Fork 0
mirror of https://github.com/thepaperpilot/Advent-Incremental.git synced 2025-04-13 00:51:06 +00:00

Change how letters handles being maxed out

This commit is contained in:
thepaperpilot 2022-12-21 18:43:36 -06:00
parent 0bbfe4c170
commit 6a353642d6

View file

@ -68,6 +68,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
style: { style: {
minHeight: "80px" minHeight: "80px"
}, },
visibility: () => showIf(Decimal.lt(totalLetters.value, 8e9)),
canClick: () => canClick: () =>
Decimal.gte(processingProgress.value, computedProcessingCooldown.value) && Decimal.gte(processingProgress.value, computedProcessingCooldown.value) &&
(!main.isMastery.value || masteryEffectActive.value), (!main.isMastery.value || masteryEffectActive.value),
@ -338,11 +339,14 @@ const layer = createLayer(id, function (this: BaseLayer) {
) : null} ) : null}
<MainDisplay resource={letters} color={color} /> <MainDisplay resource={letters} color={color} />
{render(process)} {render(process)}
{Decimal.lt(totalLetters.value, 8e9) ? (
<div> <div>
You cannot have more letters than people in the world.
The more letters you process, the more you'll improve at processing letters. The more letters you process, the more you'll improve at processing letters.
</div>
<div>Currently: {format(synergy.value)}x</div> <div>Currently: {format(synergy.value)}x</div>
</div>
) : (
<div>You've processed all of humanity's letters to Santa!</div>
)}
<Spacer /> <Spacer />
{renderRow(...Object.values(buyables))} {renderRow(...Object.values(buyables))}
<Spacer /> <Spacer />