Potential fix for letters bug?

This commit is contained in:
thepaperpilot 2022-12-23 22:27:00 -06:00
parent 1bc299e50c
commit 081ad4fd86

View file

@ -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.