mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-21 08:12:41 +00:00
Merge remote-tracking branch 'origin/main' into day-20-factory
This commit is contained in:
commit
87fa404662
3 changed files with 5 additions and 1 deletions
|
@ -98,7 +98,7 @@ const isPaused = computed({
|
|||
});
|
||||
|
||||
const canAutoSave = computed(
|
||||
() => (layers as any).main.days[(layers as any).main.day.value - 1].opened.value
|
||||
() => (layers as any).main?.days[(layers as any).main?.day.value - 1].opened.value
|
||||
);
|
||||
|
||||
const autosaveTitle = jsx(() => (
|
||||
|
|
|
@ -339,6 +339,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
) : null}
|
||||
<MainDisplay resource={letters} color={color} />
|
||||
{render(process)}
|
||||
If your letters are stuck, try holding L
|
||||
{Decimal.lt(totalLetters.value, 8e9) ? (
|
||||
<div>
|
||||
The more letters you process, the more you'll improve at processing letters.
|
||||
|
|
|
@ -123,6 +123,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
)),
|
||||
visibility: () => showIf(Decimal.lt(foundationProgress.value, computedMaxFoundation.value)),
|
||||
canClick: () => {
|
||||
if (Decimal.gt(computedMaxFoundation.value, foundationProgress.value)){
|
||||
foundationProgress.value = Decimal.min(0, computedMaxFoundation.value)
|
||||
}
|
||||
if (Decimal.lt(trees.logs.value, foundationConversion.nextAt.value)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue