fix negative fire bug

This commit is contained in:
unsoftcapped3 2022-12-06 19:24:07 -08:00 committed by GitHub
parent 84f4f94e4a
commit e79a5edd7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -804,6 +804,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
trees.logs.value = Decimal.times(diff, computedLogConsumption.value).plus(trees.logs.value);
coal.value = Decimal.times(diff, computedCoalGain.value).plus(coal.value);
ash.value = Decimal.times(diff, computedAshGain.value).plus(ash.value);
activeFires.value = activeFires.value.max(0)
});
const { total: totalCoal, trackerDisplay } = setUpDailyProgressTracker({