forked from profectus/Profectus
Make setupPassiveGeneration not lower the resource
This commit is contained in:
parent
2122103c0e
commit
166c2d34b4
1 changed files with 3 additions and 1 deletions
|
@ -460,7 +460,9 @@ export function setupPassiveGeneration(
|
||||||
conversion.gainResource.value = Decimal.add(
|
conversion.gainResource.value = Decimal.add(
|
||||||
conversion.gainResource.value,
|
conversion.gainResource.value,
|
||||||
Decimal.times(currRate, diff).times(Decimal.ceil(unref(conversion.actualGain)))
|
Decimal.times(currRate, diff).times(Decimal.ceil(unref(conversion.actualGain)))
|
||||||
).min(unref(processedCap) ?? Decimal.dInf);
|
)
|
||||||
|
.min(unref(processedCap) ?? Decimal.dInf)
|
||||||
|
.max(conversion.gainResource.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue