This should fix logs' NaN bug

This commit is contained in:
ducdat0507 2022-12-15 11:16:04 +07:00
parent b2bcd97f34
commit 2e7725a2c0

View file

@ -434,7 +434,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
enabled: management.elfTraining.planterElfTraining.milestones[0].earned
})),
createMultiplicativeModifier(() => ({
multiplier: () => Decimal.pow(trees.value, 0.2).log10().pow_base(2),
multiplier: () => Decimal.pow(trees.value, 0.2).max(1).log10().pow_base(2),
description: "Ivy Level 3",
enabled: management.elfTraining.planterElfTraining.milestones[2].earned
})),