1
0
Fork 0
mirror of https://github.com/thepaperpilot/Advent-Incremental.git synced 2025-03-22 06:01:40 +00:00

why is .max() not a thing

This commit is contained in:
unsoftcapped3 2022-12-06 19:28:05 -08:00 committed by GitHub
parent e79a5edd7f
commit 21dda55cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -804,7 +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)
activeFires.value = Decimal.max(activeFires.value, 0)
});
const { total: totalCoal, trackerDisplay } = setUpDailyProgressTracker({