mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 01:11:49 +00:00
Potential fix for letters bug?
This commit is contained in:
parent
1bc299e50c
commit
081ad4fd86
1 changed files with 3 additions and 5 deletions
|
@ -76,10 +76,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
if (Decimal.lt(processingProgress.value, computedProcessingCooldown.value)) {
|
if (Decimal.lt(processingProgress.value, computedProcessingCooldown.value)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const amount = Decimal.div(
|
const amount = Decimal.div(processingProgress.value, computedProcessingCooldown.value)
|
||||||
processingProgress.value,
|
.floor()
|
||||||
computedProcessingCooldown.value
|
.max(1);
|
||||||
).floor();
|
|
||||||
letters.value = Decimal.times(amount, computedLettersGain.value)
|
letters.value = Decimal.times(amount, computedLettersGain.value)
|
||||||
.add(letters.value)
|
.add(letters.value)
|
||||||
.min(8e9);
|
.min(8e9);
|
||||||
|
@ -339,7 +338,6 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
) : null}
|
) : null}
|
||||||
<MainDisplay resource={letters} color={color} />
|
<MainDisplay resource={letters} color={color} />
|
||||||
{render(process)}
|
{render(process)}
|
||||||
If your letters are stuck, try holding L
|
|
||||||
{Decimal.lt(totalLetters.value, 8e9) ? (
|
{Decimal.lt(totalLetters.value, 8e9) ? (
|
||||||
<div>
|
<div>
|
||||||
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.
|
||||||
|
|
Loading…
Reference in a new issue